How to conduct value-centric Web3 red teaming using the MITRE AADAPT framework. Use this skill whenever the user mentions Web3 security, blockchain red teaming, smart contract testing, DeFi security, oracle manipulation, flash loan attacks, cross-chain security, or wants to test crypto infrastructure against economic attacks. This skill helps inventory value-bearing components, map them to AADAPT techniques, design attack scenarios, and set up detection telemetry.
This skill guides you through conducting red team exercises that test whether Web3 infrastructure can resist irreversible economic loss. The MITRE AADAPT (Adversarial Actions in Digital Asset Payment Techniques) framework focuses on attacker behaviors that manipulate digital value rather than just infrastructure.
When to Use This Skill
Use this skill when:
Planning or executing Web3/blockchain security assessments
Testing DeFi protocols, bridges, oracles, or smart contracts
Designing red team scenarios for crypto infrastructure
Setting up detection and monitoring for blockchain systems
Evaluating governance, signing, or upgrade mechanisms
The user mentions any of: flash loans, oracle manipulation, cross-chain attacks, smart contract security, DeFi red teaming, blockchain penetration testing
Core Methodology
Phase 1: Inventory Value-Bearing Components
Build a complete map of everything that can influence value state, on-chain and off-chain.
What to inventory:
Custodial signing services
HSM/KMS clusters, Vault/KMaaS, signing APIs
Key IDs, policies, automation identities
Approval workflows and authorization chains
Admin & upgrade paths
Proxy admins, governance timelocks
Emergency pause keys, parameter registries
Who/what can call them, quorum requirements, delays
Map each step to specific AADAPT techniques plus observables
Formulate and deploy detection hypotheses
Re-run until MTTD and MTTC meet business tolerances
Track maturity on three axes:
Visibility: Every critical value path has telemetry in each plane
Coverage: Proportion of prioritized AADAPT techniques exercised end-to-end
Response: Ability to pause contracts, revoke keys, or freeze flows before irreversible loss
Scenario Templates
Use these repeatable blueprints to design simulations:
Scenario A: Flash-Loan Economic Manipulation
Objective: Borrow transient capital inside one transaction to distort AMM prices/liquidity and trigger mispriced borrows, liquidations, or mints before repaying.
Execution:
Fork the target chain and seed pools with production-like liquidity
Borrow large notional via flash loan
Perform calibrated swaps to cross price/threshold boundaries relied on by lending, vault, or derivative logic
Invoke the victim contract immediately after the distortion (borrow, liquidate, mint) and repay the flash loan
Measurement:
Did the invariant violation succeed?
Were slippage/price-deviation monitors, circuit breakers, or governance pause hooks triggered?
How long until analytics flagged the abnormal gas/call graph pattern?
1---2name: web3-red-teaming-aadapt3description: How to conduct value-centric Web3 red teaming using the MITRE AADAPT framework. Use this skill whenever the user mentions Web3 security, blockchain red teaming, smart contract testing, DeFi security, oracle manipulation, flash loan attacks, cross-chain security, or wants to test crypto infrastructure against economic attacks. This skill helps inventory value-bearing components, map them to AADAPT techniques, design attack scenarios, and set up detection telemetry.4---56# Value-Centric Web3 Red Teaming (MITRE AADAPT)78This skill guides you through conducting red team exercises that test whether Web3 infrastructure can resist irreversible economic loss. The MITRE AADAPT (Adversarial Actions in Digital Asset Payment Techniques) framework focuses on attacker behaviors that manipulate digital value rather than just infrastructure.910## When to Use This Skill1112Use this skill when:13- Planning or executing Web3/blockchain security assessments14- Testing DeFi protocols, bridges, oracles, or smart contracts15- Designing red team scenarios for crypto infrastructure16- Setting up detection and monitoring for blockchain systems17- Evaluating governance, signing, or upgrade mechanisms18- The user mentions any of: flash loans, oracle manipulation, cross-chain attacks, smart contract security, DeFi red teaming, blockchain penetration testing1920## Core Methodology2122### Phase 1: Inventory Value-Bearing Components2324Build a complete map of everything that can influence value state, on-chain and off-chain.2526**What to inventory:**27281. **Custodial signing services**29 - HSM/KMS clusters, Vault/KMaaS, signing APIs30 - Key IDs, policies, automation identities31 - Approval workflows and authorization chains32332. **Admin & upgrade paths**34 - Proxy admins, governance timelocks35 - Emergency pause keys, parameter registries36 - Who/what can call them, quorum requirements, delays37383. **On-chain protocol logic**39 - Lending, AMMs, vaults, staking, bridges, settlement rails40 - Document invariants: oracle prices, collateral ratios, rebalance cadence41424. **Off-chain automation**43 - Market-making bots, CI/CD pipelines, cron jobs, serverless functions44 - API keys, service principals that request signatures45465. **Oracles & data feeds**47 - Aggregator composition, quorum, deviation thresholds, update cadence48 - Every upstream relied on by automated risk logic49506. **Bridges and cross-chain routers**51 - Lock/mint contracts, relayers, settlement jobs52 - Chains or custodial stacks being tied together5354**Deliverable:** A value-flow diagram showing how assets move, who authorizes movement, and which external signals influence business logic.5556### Phase 2: Map Components to AADAPT Behaviors5758Translate the AADAPT taxonomy into concrete attack candidates per component:5960| Component | Primary AADAPT Focus |61|-----------|---------------------|62| Signing/KMS estates | Credential theft, policy bypass, signing-abuse, governance takeover |63| Oracles/feeds | Input poisoning, aggregation manipulation, deviation-threshold evasion |64| On-chain protocols | Flash-loan economic manipulation, invariant breaking, parameter reconfiguration |65| Automation pipelines | Compromised bot/CI identities, batch replay, unauthorized deployment |66| Bridges/routers | Cross-chain evasion, rapid hop laundering, settlement desynchronization |6768### Phase 3: Prioritize by Feasibility vs Impact6970**Operational weaknesses** (start here - could succeed today):71- Exposed CI credentials72- Over-privileged IAM roles73- Misconfigured KMS policies74- Automation accounts that can request arbitrary signatures75- Public buckets with bridge configs7677**Value-specific weaknesses** (deeper protocol attacks):78- Fragile oracle parameters79- Upgradable contracts without multi-party approvals80- Flash-loan sensitive liquidity81- Governance actions that bypass timelocks8283Work the queue like an adversary: start with operational footholds, then progress into deep protocol/economic manipulation paths.8485### Phase 4: Execute in Controlled Environments8687**Environment setup:**88- Forked mainnets or isolated testnets89- Replicate bytecode, storage, and liquidity90- Enable flash-loan paths, oracle drifts, and bridge flows end-to-end91- Never touch real funds9293**Blast-radius planning:**94- Define circuit breakers and pausable modules95- Prepare rollback runbooks96- Use test-only admin keys9798**Coordination:**99- Notify custodians, oracle operators, bridge partners, compliance100- Ensure monitoring teams expect the traffic101- Document scope, authorization, and stop conditions102103### Phase 5: Instrument Telemetry104105Align telemetry streams so every scenario produces actionable detection data:106107**Chain-level traces:**108- Full call graphs, gas usage, transaction nonces, block timestamps109- Reconstruct flash-loan bundles, reentrancy-like structures, cross-contract hops110111**Application/API logs:**112- Tie each on-chain tx to human or automation identity113- Session ID, OAuth client, API key, CI job ID, IPs, auth methods114115**KMS/HSM logs:**116- Key ID, caller principal, policy result, destination address, reason codes117- Baseline change windows and high-risk operations118119**Oracle/feed metadata:**120- Per-update data source composition, reported value121- Deviation from rolling averages, thresholds triggered, failover paths122123**Bridge/swap traces:**124- Correlate lock/mint/unlock events across chains125- Correlation IDs, chain IDs, relayer identity, hop timing126127**Anomaly markers:**128- Slippage spikes, abnormal collateralization ratios129- Unusual gas density, cross-chain velocity130131Tag everything with scenario IDs or synthetic user IDs.132133### Phase 6: Purple-Team Loop1341351. Run the scenario in the controlled environment1362. Capture detections (alerts, dashboards, responders paged)1373. Map each step to specific AADAPT techniques plus observables1384. Formulate and deploy detection hypotheses1395. Re-run until MTTD and MTTC meet business tolerances140141**Track maturity on three axes:**142- **Visibility:** Every critical value path has telemetry in each plane143- **Coverage:** Proportion of prioritized AADAPT techniques exercised end-to-end144- **Response:** Ability to pause contracts, revoke keys, or freeze flows before irreversible loss145146## Scenario Templates147148Use these repeatable blueprints to design simulations:149150### Scenario A: Flash-Loan Economic Manipulation151152**Objective:** Borrow transient capital inside one transaction to distort AMM prices/liquidity and trigger mispriced borrows, liquidations, or mints before repaying.153154**Execution:**1551. Fork the target chain and seed pools with production-like liquidity1562. Borrow large notional via flash loan1573. Perform calibrated swaps to cross price/threshold boundaries relied on by lending, vault, or derivative logic1584. Invoke the victim contract immediately after the distortion (borrow, liquidate, mint) and repay the flash loan159160**Measurement:**161- Did the invariant violation succeed?162- Were slippage/price-deviation monitors, circuit breakers, or governance pause hooks triggered?163- How long until analytics flagged the abnormal gas/call graph pattern?164165### Scenario B: Oracle/Data-Feed Poisoning166167**Objective:** Determine whether manipulated feeds can trigger destructive automated actions (mass liquidations, incorrect settlements).168169**Execution:**1701. In the fork/testnet, deploy a malicious feed or adjust aggregator weights/quorum/update cadence beyond tolerated deviation1712. Let dependent contracts consume the poisoned values and execute their standard logic172173**Measurement:**174- Feed-level out-of-band alerts175- Fallback oracle activation176- Min/max bound enforcement177- Latency between anomaly onset and operator response178179### Scenario C: Credential/Signing Abuse180181**Objective:** Test whether compromising a single signer or automation identity enables unauthorized upgrades, parameter changes, or treasury drains.182183**Execution:**1841. Enumerate identities with sensitive signing rights (operators, CI tokens, service accounts invoking KMS/HSM, multisig participants)1852. Simulate compromise (re-use their credentials/keys within the lab scope)1863. Attempt privileged actions: upgrade proxies, change risk parameters, mint/pause assets, or trigger governance proposals187188**Measurement:**189- Do KMS/HSM logs raise anomaly alerts (time-of-day, destination drift, burst of high-risk operations)?190- Can policies or multisig thresholds prevent unilateral abuse?191- Are throttles/rate limits or additional approvals enforced?192193### Scenario D: Cross-Chain Evasion & Traceability Gaps194195**Objective:** Evaluate how well defenders can trace and interdict assets rapidly laundered across bridges, DEX routers, and privacy hops.196197**Execution:**1981. Chain together lock/mint operations across common bridges1992. Interleave swaps/mixers on each hop, maintain per-hop correlation IDs2003. Accelerate transfers to stress monitoring latency (multi-hop within minutes/blocks)201202**Measurement:**203- Time to correlate events across telemetry + commercial chain analytics204- Completeness of the reconstructed path205- Ability to identify choke points for freezing in a real incident206- Alert fidelity for abnormal cross-chain velocity/value207208## Quick Start Checklist209210When starting a Web3 red team engagement:2112121. [ ] Complete value inventory (all 6 component categories)2132. [ ] Map components to AADAPT techniques2143. [ ] Prioritize by operational feasibility first2154. [ ] Set up forked testnet with production-like state2165. [ ] Define blast-radius controls and circuit breakers2176. [ ] Coordinate with stakeholders and get legal sign-off2187. [ ] Instrument telemetry for all value planes2198. [ ] Select and execute scenario templates2209. [ ] Run purple-team loop until MTTD/MTTC targets met22110. [ ] Document findings and detection improvements222223## References224225- [MITRE AADAPT Framework as a Red Team Roadmap (Bishop Fox)](https://bishopfox.com/blog/mitre-aadapt-framework-as-a-red-team-roadmap)226- MITRE AADAPT Matrix: https://attack.mitre.org/adapt/
Run npx skillmds@latest add abelrguezr/web3-red-teaming-aadapt in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
How to conduct value-centric Web3 red teaming using the MITRE AADAPT framework. Use this skill whenever the user mentions Web3 security, blockchain red teaming, smart contract testing, DeFi security, oracle manipulation, flash loan attacks, cross-chain security, or wants to test crypto infrastructure against economic attacks. This skill helps inventory value-bearing components, map them to AADAPT techniques, design attack scenarios, and set up detection telemetry. It is listed under Security on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts, makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
abelrguezr (@abelrguezr) published this skill. Their other Agent Skills are listed on their SkillMD profile.