跳到正文
cccskills
免费在 GitHub 公开

security-scan

Scan the repository for hardcoded secrets, exposed API keys, insecure network configurations, and vulnerable dependencies. Use when the user asks for a security audit, secret detection, credential scan, vulnerability check, or wants to find leaked tokens in the codebase.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md2.0 KB
  • scripts/main_scan.sh671 B
  • scripts/scan_deps.sh290 B
  • scripts/scan_network.py2.2 KB
  • scripts/scan_secrets.py2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Security Scan

Detect hardcoded secrets, insecure network patterns, and vulnerable dependencies in the repository using integrated scanning scripts.

Workflow

1. Determine scope

Identify whether to scan the entire repo or specific subdirectories based on the user request.

2. Run the scan

bash .agents/skills/security/scripts/main_scan.sh

The scan checks three categories:

  • Secret detection: Hardcoded API keys, tokens, passwords, and credentials (e.g., patterns like AKIA, sk-, ghp_, Bearer)
  • Network check: Hardcoded IP addresses and insecure protocol usage (http:// where https:// is expected)
  • Dependency audit: npm audit for vulnerable packages

If the main script is unavailable, run checks manually:

# Secret patterns
grep -rn "AKIA\|sk-\|ghp_\|password\s*=\|api_key\s*=" --include="*.ts" --include="*.js" --include="*.env" .

# Insecure protocols
grep -rn "http://" --include="*.ts" --include="*.js" . | grep -v localhost

# Dependency vulnerabilities
npm audit --json

3. Report findings

Organize results by severity:

SeverityExamples
HighExposed API keys, hardcoded passwords, leaked tokens
MediumInsecure protocol usage, hardcoded IPs in production code
LowOutdated dependencies with low-severity CVEs

Provide actionable remediation for each finding (e.g., "Rotate this key and move to environment variable", "Upgrade package X to version Y").

4. Safety

CRITICAL: Never display a full secret in the output. Mask all sensitive values (e.g., AKIA...XXXX, sk-...abcd). Warn the user about the risk of committing secrets to version control.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Skill for adding or updating educational algorithm guides, ensuring consistent patterns and simple explanations suitable for an 8-year-old.

中文简介正在准备中。当前显示原文说明。

rkmahale17/rulcode.com152026年10月12日 更新

Install and configure PostHog analytics SDK in React Native applications, including event tracking, feature flags, user identification, and error tracking. Use when the user needs to add PostHog analytics, session recording, or feature flags to a React Native app.

中文简介正在准备中。当前显示原文说明。

rkmahale17/rulcode.com152026年10月12日 更新

PostHog integration for React Router v6 applications

中文简介正在准备中。当前显示原文说明。

rkmahale17/rulcode.com152026年10月12日 更新

Develop and extend the RulCode technical interview preparation platform built with React, Vite, TypeScript, and Supabase. Use when adding new algorithm problems, building visualization components, implementing DSA topic pages, updating the problem editor, or modifying the interview preparation UI.

中文简介正在准备中。当前显示原文说明。

rkmahale17/rulcode.com152026年10月12日 更新

Skill for adding or updating system design guides tailored for college students and beginners, using simple analogies and no simulations.

中文简介正在准备中。当前显示原文说明。

rkmahale17/rulcode.com152026年10月12日 更新

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

中文简介正在准备中。当前显示原文说明。

rkmahale17/rulcode.com152026年10月12日 更新

查看 rkmahale17 的全部技能

报告此技能的问题