skill-security-auditor
यह क्या करती है
यह स्किल किसी प्रोजेक्ट में आम सुरक्षा कमज़ोरियों की जाँच करती है और बताती है कि क्या ठीक करना है। यह उन डेवलपर्स के लिए है जो रिलीज़ से पहले या बड़े बदलाव के बाद सुरक्षा समीक्षा चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप रिलीज़ से पहले किसी प्रोजेक्ट का सुरक्षा ऑडिट चाहते हैं।
- ✓अगर आपको शक है कि कोड में गुप्त कुंजियाँ या क्रेडेंशियल्स लिखे हुए हैं।
- ✓जब आप डिपेंडेंसी में ज्ञात कमज़ोरियाँ जाँचना चाहते हैं या प्रमाणीकरण की समीक्षा चाहते हैं।
Skill का लिंक
https://github.com/eigent-ai/eigent/blob/main/resources/example-skills/skill-security-auditor/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस प्रोजेक्ट का सुरक्षा ऑडिट कीजिए और इंजेक्शन जोखिम या लीक हुई गुप्त कुंजियों वाली हर चीज़ की सूची दीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले प्रोजेक्ट की भाषाएँ, फ़्रेमवर्क और एंट्री पॉइंट पहचानता है, फिर गुप्त कुंजियों और जोखिम भरे कोड पैटर्न की स्कैन चलाता है। इसके बाद प्रमाणीकरण, डिपेंडेंसी और कॉन्फ़िगरेशन की समीक्षा करता है और जो मिला उसे लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Security Auditor Guide
Overview
This guide covers security auditing workflows for source code, dependencies, and configurations. For detailed vulnerability patterns and detection rules, see references/vulnerability-patterns.md. For secrets detection patterns, see references/secrets-patterns.md.
Quick Start
Run the bundled scan script against a project directory:
python scripts/scan_project.py /path/to/project
This performs a lightweight scan for common issues: hardcoded secrets, dangerous function calls, and insecure patterns. For deeper analysis, follow the workflows below.
Testing the scripts
python scripts/scan_project.py /path/to/some/project --format text
python scripts/scan_secrets.py /path/to/some/project --format text
Audit Workflow
1. Reconnaissance
Before auditing, understand the project:
# Identify languages, frameworks, and entry points
find . -type f -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.go" -o -name "*.java" | head -20
cat package.json pyproject.toml requirements.txt go.mod pom.xml 2>/dev/null
Key questions:
- What frameworks are used? (Express, Django, Flask, Spring, etc.)
- Where are the entry points? (routes, controllers, API handlers)
- How is authentication handled?
- What external services are called?
- Is user input accepted? Where?
2. Secrets Detection
Scan for hardcoded credentials, API keys, and tokens. See references/secrets-patterns.md for the full pattern list.
python scripts/scan_secrets.py /path/to/project
Common patterns to check:
- API keys and tokens in source files
- Database connection strings with embedded passwords
- Private keys or certificates committed to the repo
.envfiles or config files with plaintext secrets- Secrets in CI/CD configuration files
3. Vulnerability Scanning
OWASP Top 10 Checklist
| # | Category | What to Look For |
|---|---|---|
| A01 | Broken Access Control | Missing auth checks, IDOR, privilege escalation |
| A02 | Cryptographic Failures | Weak algorithms, plaintext storage, missing TLS |
| A03 | Injection | SQL, NoSQL, OS command, LDAP, XSS |
| A04 | Insecure Design | Missing rate limits, business logic flaws |
| A05 | Security Misconfiguration | Debug mode, default credentials, verbose errors |
| A06 | Vulnerable Components | Outdated dependencies with known CVEs |
| A07 | Auth Failures | Weak passwords, missing MFA, session issues |
| A08 | Data Integrity Failures | Insecure deserialization, unsigned updates |
| A09 | Logging Failures | Missing audit logs, sensitive data in logs |
| A10 | SSRF | Unvalidated URLs in server-side requests |
Language-Specific Checks
Python
# Dangerous: SQL injection
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
# Safe: Parameterized query
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))
# Dangerous: Command injection
os.system(f"ping {hostname}")
# Safe: Use subprocess with list args
subprocess.run(["ping", hostname], capture_output=True)
# Dangerous: Path traversal
open(f"/data/{user_input}")
# Safe: Validate and resolve path
path = pathlib.Path("/data") / user_input
path.resolve().relative_to(pathlib.Path("/data").resolve())
JavaScript/TypeScript
// Dangerous: XSS via innerHTML
element.innerHTML = userInput;
// Safe: Use textContent or sanitize
element.textContent = userInput;
// Dangerous: Prototype pollution
Object.assign(target, JSON.parse(userInput));
// Safe: Validate input structure
const parsed = JSON.parse(userInput);
if (typeof parsed !== 'object' || Array.isArray(parsed)) throw new Error();
const sanitized = Object.fromEntries(
Object.entries(parsed).filter(([k]) => !k.startsWith('__'))
);
// Dangerous: eval or Function constructor
eval(userInput);
// Safe: Never use eval with user input
Go
// Dangerous: SQL injection
db.Query("SELECT * FROM users WHERE id = " + id)
// Safe: Parameterized query
db.Query("SELECT * FROM users WHERE id = $1", id)
// Dangerous: Path traversal
http.ServeFile(w, r, filepath.Join(baseDir, r.URL.Path))
// Safe: Clean and validate path
cleaned := filepath.Clean(r.URL.Path)
full := filepath.Join(baseDir, cleaned)
if !strings.HasPrefix(full, baseDir) { http.Error(...) }
4. Dependency Audit
Check for known vulnerabilities in project dependencies:
# Python
pip audit
safety check -r requirements.txt
# Node.js
npm audit
npx auditjs ossi
#
अक्सर पूछे जाने वाले सवाल
क्या स्कैन पूरी समीक्षा की जगह ले सकता है?
नहीं। साथ दिया गया स्कैन एक हल्का पहला चरण है, और पूरे ऑडिट के लिए स्किल गहरी जाँच की सलाह देती है।
क्या यह हर कमज़ोरी ढूँढ लेगी?
कोई भी ऑडिट हर चीज़ नहीं ढूँढता। स्किल वही बताती है जो वह पक्का कर सकती है, और जिन हिस्सों को ध्यान से देखना चाहिए उनकी ओर इशारा करती है।
यह किस तरह की समस्याएँ खोजती है?
यह SQL इंजेक्शन, क्रॉस-साइट स्क्रिप्टिंग, कमांड इंजेक्शन, पाथ ट्रैवर्सल और कोड में लिखे गुप्त डेटा जैसी समस्याएँ देखती है।
जानकारी
लेखक का मूल विवरण
Security auditing for code, configs, and infrastructure. Use when the user wants to audit or improve security: scan for vulnerabilities (SQL injection, XSS, command injection, path traversal), detect hardcoded secrets and credentials, review auth and authorization, check dependencies for known CVEs, audit config files for insecure defaults, or generate security reports. Trigger on \"security audit\", \"vulnerability scan\", \"code review for security\", \"find secrets\", \"check for vulnerabilities\", \"OWASP\", \"CVE\", or questions about code security.
repo: eigent-ai/eigent
लोकप्रियता
- GitHub स्टार
- 16k
- रैंकिंग में स्थान
- #10880
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।