agents/skills/evm/cross-chain-timing/SKILL.md
Type Thought-template (instantiate before use) - Research basis Multi-block arbitrage windows, bridge latency exploitation
npx skillsauth add plamentsv/plamen cross-chain-timingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Type: Thought-template (instantiate before use) Research basis: Multi-block arbitrage windows, bridge latency exploitation
bridge|L1|L2|tunnel|messenger|crossChain|sendMessage|receiveMessage|
_processMessageFrom|LayerZero|CCIP|Wormhole|Arbitrum|Optimism
1. Attacker monitors {SOURCE_CHAIN} for state changes at {MONITOR_POINT}
2. State change triggers sync message (latency window opens)
3. Attacker executes on {DEST_CHAIN} at {EXPLOIT_FUNCTION} using stale {STALE_STATE}
4. Sync message arrives, state updates
5. Attacker profits: {PROFIT_CALCULATION}
{CONTRACTS} -- List of contracts to analyze
{BRIDGE_PROTOCOL} -- Specific bridge (LayerZero, CCIP, Arbitrum Messenger, etc.)
{SYNC_POINT} -- Function/event where sync occurs
{DEPENDENT_FUNCTIONS} -- Functions that read synced state
{SOURCE_CHAIN} -- Chain where state originates
{DEST_CHAIN} -- Chain where stale state is exploited
{MONITOR_POINT} -- What attacker monitors on source chain
{EXPLOIT_FUNCTION} -- Function attacker calls on dest chain
{STALE_STATE} -- Specific state variable that becomes stale
{PROFIT_CALCULATION} -- Formula for attacker profit
{MAX_DELTA} -- Maximum observed state change
{PROFIT_FORMULA} -- (new_value - old_value) * position_size
| Field | Required | Description | |-------|----------|-------------| | sync_mechanism | yes | How state is synced (bridge, function, event) | | latency_estimate | yes | Realistic sync latency with source | | stale_operations | yes | List of operations using potentially stale state | | arbitrage_sequence | yes | Step-by-step attack if viable | | profit_viability | yes | VIABLE / NOT_VIABLE / NEEDS_VERIFICATION | | finding | yes | CONFIRMED / REFUTED / NEEDS_DEPTH | | evidence | yes | Code locations with line numbers |
development
Prepare Solidity projects for a security audit — test coverage, test quality, NatSpec docs, code hygiene, dependency health, best-practice enforcement, deployment readiness, and project documentation checks. Generates a scored Audit Readiness Report and optionally runs static analysis. Trigger on: "prepare for audit", "audit readiness", "pre-audit check", "audit prep", "NatSpec check", or any request to review a Solidity codebase before a security review.
development
Launch the Plamen deterministic Web3 security audit pipeline
development
Run the Plamen smart-contract audit wizard in Codex
testing
Launch the Plamen deterministic L1 infrastructure audit pipeline