Install
$ agentstack add skill-auditmos-skills-audit-liquidation-dos ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Liquidation DoS Auditor
When to Use
- Auditing liquidation mechanisms for DoS vectors
- User mentions: liquidation DoS, unbounded loops, gas limits, front-run liquidation, callback attacks, reentrancy, token compatibility
- Analyzing liquidation griefing attacks, gas exhaustion, revert conditions
- Reviewing position enumeration, collateral seizure, token integrations
Audit Workflow
IMPORTANT: Announce skill usage at the start of analysis
Begin with: "I'm using the audit-liquidation-dos skill to analyze this contract for liquidation denial of service vulnerabilities..."
- Scan for liquidation operations
- Search:
liquidate,seizeCollateral,for,while,onERC721Received,transfer,nonReentrant,positions,EnumerableSet - Focus: loops, callbacks, reentrancy guards, token transfers, balance checks
- Check against vulnerability patterns
- Reference
reference.mdfor complete checklist - Compare code against
example.md
- Validate exploitability
- Check access control first - grep for
onlyOwner|onlyAdmin|onlyGovernancemodifiers - Can non-privileged actors trigger liquidation DoS?
- Can liquidation be blocked via gas exhaustion?
- Can users front-run to prevent liquidation?
- Can callbacks or hooks revert liquidation?
- Can token incompatibilities block liquidation?
- Verify no compensating protections exist
- Downgrade severity if admin-only unless prevents all liquidations
- Generate report
- Use deliverable template below
- Include PoC showing DoS condition
- Rank by severity
Core Vulnerability Patterns
See reference.md for full checklist. Key patterns:
- Unbounded loops over positions → OOG revert during liquidation
- Data structure corruption → liquidation reverts on corrupted state
- Front-run prevention → nonce change or self-liquidation blocks liquidator
- Pending withdrawals → equal to balance causes revert
- Malicious callbacks → ERC721/ERC20 hooks revert to prevent liquidation
- External vault collateral → not seized during liquidation
- Insufficient insurance fund → bad debt blocks liquidation
- Fixed bonus exceeds collateral → 110% bonus fails when ratio 1 borrower
Code examples: See example.md
Severity Criteria
Critical: Liquidation permanently blocked causing protocol insolvency, all positions unliquidatable, MUST be exploitable by non-privileged actors High: Specific positions unliquidatable via griefing, protocol accumulates bad debt from DoS, MUST be exploitable by non-privileged actors Medium: Liquidation delayed or requires special conditions, increases bad debt risk, admin-only liquidation function DoS issues with cascading impact Low: Edge case DoS with limited impact, easily mitigated, admin-only function issues without immediate liquidation impact
IMPORTANT: Admin-only liquidation functions (onlyOwner, onlyAdmin, onlyGovernance) with DoS vectors are MEDIUM or LOW severity unless:
- Admin function failure prevents all liquidations protocol-wide
- DoS in admin function enables bad debt accumulation affecting all users
- Admin liquidation path is the only liquidation mechanism (no trustless alternative)
False Positives - Do NOT Flag
- Bounded loops with documented max limits
- Trusted token integrations (if explicitly documented)
- Admin-controlled liquidation paths with known restrictions
- Intentional liquidation delays with explicit design docs
- Protocols using liquidation queues or alternative mechanisms
- Admin-only liquidation helper functions (onlyOwner, onlyAdmin) where public liquidation path exists
- Governance-controlled collateral seizure functions with documented emergency-only usage
- Admin batch liquidation functions with gas limits where single liquidation still works
Deliverable Format
MANDATORY: Before deliverable, verify each checklist.md item against codebase. Flag violations as findings.
Use template: templates/report-template.md
Each finding includes: severity, pattern #, file/lines, description, vulnerable code, DoS impact analysis, PoC showing griefing attack, remediation, gas impact.
Key Principles
- Bounded iteration - never loop over unbounded user-controlled arrays
- Graceful degradation - liquidation should work even with bad debt/edge cases
- Front-run resistance - liquidation cannot be blocked by borrower actions
- Callback isolation - external calls cannot revert liquidation
- Token compatibility - handle zero transfers, deny lists, non-standard decimals
Output Guidelines
DO:
- Reference specific lines and functions
- Provide executable PoCs showing DoS
- Quantify gas limits and iteration costs
- Show token compatibility issues
DON'T:
- Report intentional design choices with documentation
- Flag bounded loops with max limits
- Use vague terms ("could cause DoS")
- Ignore compensating mechanisms (liquidation queues, etc.)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: auditmos
- Source: auditmos/skills
- License: MIT
- Homepage: https://auditmos.com
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.