dos-attack

Identify and analyze Denial of Service attack patterns in Solidity smart contracts.

60|18|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/PurpleAILAB/Vigilo --skill dos-attack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dos-attack
Source: https://github.com/PurpleAILAB/Vigilo/tree/main/packages/opencode/skills/dos-attack
Command: npx skills add https://github.com/PurpleAILAB/Vigilo --skill dos-attack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and explains various Denial of Service (DoS) attack vectors in smart contracts, helping developers prevent fund locks and protocol freezes.

Core Features & Use Cases

  • Vulnerability Identification: Detects patterns related to unbounded loops, external call failures, block gas limit exploitation, storage exhaustion, and liveness failures.
  • Root Cause Analysis: Explains the underlying reasons for DoS vulnerabilities with Solidity code examples.
  • Detection Patterns: Provides specific search queries and mitigation strategies for each DoS type.
  • Use Case: A smart contract auditor can use this Skill to quickly scan a codebase for common DoS patterns, understand the risks, and suggest secure alternatives.

Quick Start

Analyze the provided Solidity code for potential Denial of Service vulnerabilities.

Frequently Asked Questions about dos-attack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect Denial of Service vulnerabilities in Solidity smart contracts?

To detect Denial of Service vulnerabilities in Solidity, analyze the code for patterns like unbounded loops, external call failures, block gas limit exploitation, and storage exhaustion to prevent protocol freezes and fund locks.

What is gas griefing and how does it cause smart contract DoS attacks?

Gas griefing is a Denial of Service vector where an attacker deliberately consumes excessive gas during operations, causing block gas limit exploitation. This mechanism freezes contract execution and prevents legitimate transactions.

How can I prevent unbounded loops from freezing my smart contract?

You can prevent unbounded loops from freezing your smart contract by identifying these DoS patterns during auditing and applying specific mitigation strategies. This ensures operations stay within block gas limits and prevents liveness failures.

Does this DoS vulnerability detection approach handle external call failures and storage exhaustion?

Yes, this DoS vulnerability detection approach handles external call failures and storage exhaustion. It analyzes these specific attack vectors in smart contracts, explains root causes with Solidity examples, and suggests secure alternatives.

What are the limitations when auditing smart contracts for liveness failures and storage DoS?

When auditing smart contracts for liveness failures and storage DoS, limitations include the complexity of detecting deeply nested external call failures. Proper root cause analysis requires understanding specific Solidity patterns for accurate vulnerability identification.