SECURITY / trailofbits
Smart Contract Security Workflow
Combine static analysis, feature checks, invariants and manual review in a smart-contract workflow.
“Guides through Trail of Bits' 5-step secure development workflow. Runs Slither scans, checks special features (upgradeability/ERC conformance/token integration), generates visual security diagrams, helps document security properties for fuzzing/verification, and reviews manual security areas. Use when securing a smart contract end to end rather than hunting one bug, checking a project on every check-in or before deployment, triaging a Slither report, or asking where to start on smart contract security.”
01 / THE REASONING
Why this made the selection.
- The workflow separates known-pattern scans from state/authorization diagrams, property design and manual review of privacy, transaction ordering and external assumptions.
- Turn a Slither report into triaged findings and explicit properties for a bounded fuzzing campaign.
02 / THE REVIEW RECORD
What we actually inspected.
Source review has boundaries.
A clear record is more useful than a “safe” badge.
Material inspected
- plugins/building-secure-contracts/skills/secure-workflow-guide/SKILL.md
- plugins/building-secure-contracts/skills/secure-workflow-guide/resources/WORKFLOW_STEPS.md
- LICENSE
- README.md
Our findings
- The workflow separates known-pattern scans from state/authorization diagrams, property design and manual review of privacy, transaction ordering and external assumptions.
Not established by this review
- Third-party instructions and helpers were not executed; service access, host compatibility and outcomes remain untested.
The review applies to the material and revision named here. A newer upstream release can change its behavior.
03 / PUT IT TO WORK
Add a skill to your workflow.
DOCUMENTED COMMAND
npx skills add trailofbits/skills/plugins/building-secure-contracts/skills/secure-workflow-guide Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.
Optional: install the reviewed revision
Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.
npx skills add https://github.com/trailofbits/skills/tree/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/building-secure-contracts/skills/secure-workflow-guide - Install the pinned directory interactively and retain its referenced files; inspect the source before granting tool access.
- Pin compatible compiler/analyzer versions, determine applicable ERC/upgrade checks and document invariants before configuring bounded tests.
Before you start
- Contract build environment, Slither and optional Echidna/Manticore with project-specific configuration
04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/building-secure-contracts/skills/secure-workflow-guide/SKILL.md
Supports: summary, review, install, access, limitations
- Pinned plugins/building-secure-contracts/skills/secure-workflow-guide/resources/WORKFLOW_STEPS.md ↗Checked
https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/building-secure-contracts/skills/secure-workflow-guide/resources/WORKFLOW_STEPS.md
Supports: summary, review, install, access, limitations
- Pinned LICENSE ↗Checked
https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/LICENSE
Supports: license
- Pinned README.md ↗Checked
https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/README.md
Supports: summary, review, install, access, limitations