- Home
- Skills
- Web3 & Crypto
- Bounty Security Pattern Auditor
Works with the AI Agents 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
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.
Connects securely to your tools. The creator never sees your data.
About this skill
Does not perform live penetration testing or destructive exploits. High-impact analysis requires providing complete code context or component logic. Focuses on authorized defensive research only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago
Permissions
No special permissions declared or detected