- Home
- Skills
- Web3 & Crypto
- Bounty Security Pattern Auditor
Works with the AI tools you already use
Bounty Security Pattern Auditor
A pattern-based security auditor for code and smart contracts that identifies risks and provides remediation reports.
$19.99
Bounty Security Pattern Auditor
Example session with this skill installed
Analyze the following smart-contract withdrawal and accounting logic for security weaknesses.
Review the supplied code for
- Access-control issues
- Accounting inconsistencies
- Unsafe state transitions
- Reentrancy-sensitive interactions
- Precision or rounding problems
- External-call risks
- Other relevant security patterns
For each potential finding, provide the affected function, evidence from the code, severity, confidence, security impact, missing evidence, safe validation approach, remediation, and a regression-test recommendation.
Do not assume a vulnerability is confirmed unless the supplied code provides sufficient evidence.
- Read your context and instructions
- Compiled the bounty security pattern
- Generated the document
Security Review Summary
The supplied contract logic was reviewed for access control, accounting integrity, state transitions, external interactions, and common smart-contract security patterns.
Overall Assessment
Findings Identified: 3 potential issues
Highest Severity: High
Review Confidence: Medium
The findings below should be validated against the complete contract, inherited contracts, token behavior, and deployment configuration before being treated as confirmed vulnerabilities.
Finding 1: Withdrawal Accounting May Become Inconsistent
Severity: High
Confidence: Medium
Pattern: Accounting / State Consistency
Location: Withdrawal flow
Evidence
The withdrawal path updates multiple accounting values across the transaction. The security concern is whether every state variable remains synchronized across successful and reverted execution paths.
Why It Matters
If internal accounting can diverge from the actual asset balance, users or the protocol may experience incorrect balances, blocked withdrawals, or unintended asset exposure.
Missing Evidence
- Complete contract implementation
- Related deposit logic
- Token transfer behavior
- Relevant invariants
Safe Validation
Create local unit tests covering
- Normal deposit followed by withdrawal
- Multiple deposits and withdrawals
- Partial withdrawals
- Failed transfers
- Reverted transactions
Verify that internal accounting remains consistent with actual balances.
Remediation
Define explicit accounting invariants and update related state variables in a consistent transaction flow.
Regression Test
After remediation, assert that total recorded balances remain consistent with the contract's expected asset state after every supported deposit and withdrawal scenario.
Finding 2: External Interaction Requires Reentrancy Review
Severity: Medium
Confidence: Medium
Pattern: External Call / Interaction Ordering
Location: Asset-transfer portion of withdrawal flow
Evidence
The withdrawal process interacts with an external token or contract.
Why It Matters
External calls can introduce execution behavior outside the immediate function's control.
Safe Validation
Use a local test environment with a controlled mock contract to verify state consistency around external interactions.
Remediation
Follow a consistent checks-effects-interactions design and use appropriate reentrancy protections where the contract's architecture requires them.
Finding 3: Access-Control Assumptions Need Verification
Severity: Medium
Confidence: Low
Pattern: Authorization
Location: Administrative or privileged operation
Evidence
The supplied excerpt does not contain enough context to establish whether every privileged operation is protected by the intended authorization mechanism.
Why It Matters
Incorrect authorization can allow unintended users or contracts to perform privileged operations.
Missing Evidence
- Complete access-control implementation
- Role definitions
- Deployment configuration
- Ownership initialization
Safe Validation
Add local authorization tests verifying that:
- Authorized callers can perform the operation.
- Unauthorized callers are rejected.
- Role changes behave as intended.
Remediation
Centralize privileged-operation checks and explicitly test every privileged entry point.
Findings Matrix
| ID | Severity | Confidence | Category | Component | Status |
|---|---|---|---|---|---|
| SEC-001 | High | Medium | Accounting | Withdrawal | Needs validation |
| SEC-002 | Medium | Medium | External interaction | Withdrawal | Needs validation |
| SEC-003 | Medium | Low | Authorization | Admin operation | Needs validation |
Priority Remediation Plan
Priority 1
Verify withdrawal accounting invariants using local tests and complete contract context.
Priority 2
Review all external interactions and state-update ordering.
Priority 3
Audit every privileged entry point and add authorization regression tests.
Coverage Notes
This assessment is based only on the supplied code context. Complete contract files, inherited contracts, deployment configuration, and dependent token implementations may be required before confirming the findings.
bounty-security-pattern-auditor.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 9 days ago
- Passed all security checks, Safe to install