ai-threat-testing
Offensive AI security testing and exploitation framework. Systematically tests LLM applications for OWASP Top 10 vulnerabilities…
Smart contract security testing and blockchain CTF exploitation. Covers Solidity vulnerability analysis, EVM storage manipulation, delegatecall attacks, CREATE/CREATE2 address prediction, and common DeFi exploit patterns. Use when analyzing Solidity contracts, solving blockchain
Claude Code
$ npx -y skills add transilienceai/communitytools --skill blockchain-security --agent claude-code
Codex
$ npx skills add transilienceai/communitytools --skill blockchain-security -a codex -y
Cursor
$ npx skills add transilienceai/communitytools --skill blockchain-security -a cursor -y
Gemini CLI
$ npx skills add transilienceai/communitytools --skill blockchain-security -a gemini-cli -y
GitHub Copilot
$ npx skills add transilienceai/communitytools --skill blockchain-security -a github-copilot -y
OpenCode
$ npx skills add transilienceai/communitytools --skill blockchain-security -a opencode -y
Windsurf
$ npx skills add transilienceai/communitytools --skill blockchain-security -a windsurf -y
name: blockchain-security description: Smart contract security testing and blockchain CTF exploitation. Covers Solidity vulnerability analysis, EVM storage manipulation, delegatecall attacks, CREATE/CREATE2 address prediction, and common DeFi exploit patterns. Use when analyzing Solidity contracts, solving blockchain challenges, or testing smart contract security.
1. Download and decompile contracts (source or bytecode) 2. Map storage layout and identify privileged operations 3. Check for delegatecall, CREATE address prediction, reentrancy, access control 4. Deploy exploit contracts via web3.py or cast/forge 5. Verify win condition (isSolved/flag endpoint)
# Get connection info curl http://$HOST:$PORT/connection_info # -> PrivateKey, Address, TargetAddress, setupAddress # RPC endpoint RPC_URL="http://$HOST:$PORT/rpc" # Win condition: Setup.isSolved() must return true
When contract A does `delegatecall` to contract B, B's code runs with A's storage.
Contract addresses from CREATE are deterministic: `keccak256(rlp([sender, nonce]))[12:]`
When a function loops over a user-supplied array to validate items (signatures, approvals, votes), passing an **empty array** skips the loop entirely. If there's no minimum-length check, validation is bypassed.
Raw `ecrecover` accepts both `(v, r, s)` and `(v', r, N-s)` (where N = secp256k1 order, v flipped 27↔28). If a contract deduplicates signatures by hash of raw bytes, the malleable form has a different hash but recovers to the same signer.
| Vulnerability | Check | |---|---| | Reentrancy | External calls before state updates | | Access control | Missing onlyOwner / msg.sender checks | | Integer overflow | Solidity < 0.8.0 without SafeMath | | Delegatecall injection | User-controlled delegatecall target | | tx.origin auth | `tx.origin` instead of `msg.sender` | | Selfdestruct | Force-send ETH, reset contract nonce | | Weak randomness | blockhash/timestamp as entropy source | | Empty array bypass | Loop validation with no min-length check | | Signature malleability | Raw ecrecover without s-normalization |
# web3.py essentials
from web3 import Web3
w3 = Web3(Web3.HTTPProvider(RPC_URL))
acct = w3.eth.account.from_key(PRIVATE_KEY)
# Read private storage
w3.eth.get_storage_at(contract_addr, slot)
# Deploy contract
from solcx import compile_source, install_solc
install_solc("0.8.13")
compiled = compile_source(source, output_values=["abi", "bin"], solc_version="0.8.13")
# Send raw bytecode deployment
tx = {'data': bytecode, 'gas': 3000000, 'gasPrice': w3.eth.gas_price, 'nonce': nonce, 'chainId': chain_id}
signed = acct.sign_transaction(tx)
w3.eth.send_raw_transaction(signed.raw_transaction)Open-source Claude Code skills and agents for AI-powered penetration testing, bug bounty hunting, AI threat testing, and security reconnaissance — from the team at Transilience.ai
Offensive AI security testing and exploitation framework. Systematically tests LLM applications for OWASP Top 10 vulnerabilities…
API security testing - GraphQL, REST API, WebSocket, and Web-LLM attack techniques.
Stitches confirmed single-asset findings into multi-hop attack paths across the organization. Builds a graph where nodes are…
Acquire an authenticated session THROUGH MFA/OTP on an in-scope target and emit a reusable session artifact (Playwright…
Authentication security testing - auth bypass, JWT attacks, OAuth flaws, password attacks, 2FA bypass, CAPTCHA bypass, and bot…
Client-side vulnerability testing - XSS (reflected/stored/DOM), CSRF, CORS misconfiguration, Clickjacking, DOM-based attacks, and…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…