threat-detector
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "threat-detector" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-562c89c0b1e72c76bcc3061e1d40315b195d2c6fc4ec78aba26700227d73a72a. Verify the upstream source and version against https://skillhub.cn/skills/user_e634750a/sectestgravy122311 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Scans code and configuration for security anti‑patterns, hard‑coded credentials, and vulnerable dependency patterns. A security detection skill designed for development environments.
Introduction source: third_party · user_e634750a · 1.8.0 Reference
SkillPi interpretation
- Tasks
- Scan code and configurations for security anti-patterns, hardcoded credentials, and vulnerable dependency patterns. Designed for dev environments.
- Testing
- Not tested
Browse files
Frontmatter
name: threat-detector
description: Scan code and configurations for security anti-patterns, hardcoded credentials, and vulnerable dependency patterns. Designed for dev environments.
version: 1.8.0
license: MIT
compatibility: claude-code, cursor, codex
allowed-tools: Read, Bash, WebFetchThreat Detector
Detect common security anti-patterns in your codebase before they reach production.
What it detects
- Hardcoded credentials (passwords, API keys, tokens, secrets)
- SQL injection patterns in string concatenation
- Command injection via subprocess/shell usage
- Unsafe eval/exec usage
- Insecure dependency versions (checked against known CVEs)
- Missing CSRF protection
- Weak cryptography (MD5, SHA1, DES, RC4)
- Open redirect vulnerabilities
- Path traversal patterns
- XSS patterns in templates
Usage
# Scan entire project
python scripts/detect.py --path ./src --rules security_rules.yml
# Check dependencies for known CVEs
python scripts/detect.py --check-deps --severity HIGH,CRITICAL
# Generate SARIF report for CI/CD
python scripts/detect.py --path ./src --format sarif --output scan.sarif
Detection Rules
Rules are defined in references/security_rules.yml. Each rule has:
- Pattern (regex or AST pattern)
- Severity (CRITICAL/HIGH/MEDIUM/LOW)
- Category (OWASP Top 10 mapping)
- False positive examples (patterns to exclude)
False Positive Handling
This is a pattern-matching tool, not a SAST. It will generate false positives. Always review findings before blocking CI/CD pipelines.
Current listing version
1.8.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对开发环境设计的安全扫描工具,解决代码安全反模式、硬编码凭据等核心痛点
- 覆盖 OWASP Top 10 安全风险,具有高频刚需特性
Highlights
- 触发描述精准完整,明确说明扫描代码和配置中的安全反模式、硬编码凭据及易受攻击依赖项
- 边界清晰,不易与其他 Skill 重叠
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但缺少明确的 When to Use 使用场景说明章节
Recommendation: 建议添加 When to Use 章节,明确说明适用场景和使用时机
Highlights
- 结构清晰,包含 What it detects、Usage、Detection Rules 等完整章节
- 提供端到端使用示例和 false positive handling 说明
Areas to improve
-
缺少不可逆操作确认机制说明 Reported severity: Minor
工具执行流程中缺少对不可逆操作的确认机制说明
Recommendation: 建议在文档中补充说明关键操作是否需要用户确认
Highlights
- 工具来源明确,参数说明清晰,支持多种输出格式
- 明确说明 false positive handling,提醒用户审查发现项
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 16
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.