dengbao-code-audit
Skill0 starsChanged 2 months agoMITView on GitHub
Scan source code, configuration, deployment files, and project documents from a China MLPS 2.0 Level 3 / 等保三级 code-security perspective. Use when auditing internal or public-facing software systems for authentication, authorization, audit logging, data security, interface security, transport security, exposed operations surfaces, backup/recovery, release-change evidence, and missing compliance materials, then producing a Markdown security findings report and remediation plan.
In this repository42 other files it gives its agents.
- ai-pr-redteamSkill
- ai-servicesSkill
- build-work-memorySkill
- ceo-calendar-inviteSkill
- ceo-document-reviewSkill
- ceo-email-classifierSkill
- ceo-feedback-iterationSkill
- ceo-feedback-processingSkill
- ceo-mail-reviewSkill
- ceo-meeting-workSkill
- ceo-message-triageSkill
- ceo-minutes-syncSkill
- ceo-personnel-communicationSkill
- ceo-wechatSkill
- ceo-work-trackingSkill
- codex-model-capacity-retrySkill
- daily-frontier-tech-discoverySkill
- dingtalk-browser-exportSkill
- dingtalk-knowledge-organizeSkill
- dingtalk-minutes-access-requestSkill
- dingtalk-oa-approvalSkill
- dingtang-okr-reviewSkill
- fundflow-investor-meetingSkill
- fxiaoke-crm-cliSkill
- internal-app-standardsSkill
- ocrSkill
- pm-data-adaptation-assistantSkill
- project-delivery-document-collectionSkill
- qa-generated-test-caseSkill
- senior-technical-product-evaluationSkill
- spec-intakeSkill
- sso-oidc-onboardingSkill
- stardust-interviewSkill
- production-devops-sreSkill
- stardust-ttsSkill
- startask-io-contract-auditSkill
- task-managementSkill
- transcribeSkill
- veyra-timesheetSkill
- vibe-coding-rescueSkill
- vibe-codingSkill
- video-transcribeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to perform a source-level security audit for internal systems, especially systems that may be deployed on the public …
- Distinctive: line 22
If a report path is requested by the user, use that path.
- Distinctive: line 29
If the system is public-facing, raise the risk level of auth, permission, data leakage, and exposed service findings.
- Distinctive: line 31
Run the bundled inventory script when useful:
- Distinctive: line 37
Run the bundled pattern scanner for first-pass evidence:
- Distinctive: line 43
Read the most relevant code paths instead of relying only on grep output.
- Distinctive: line 45
Check whether permission decisions happen on the backend, not only in frontend routes/buttons.
- Distinctive: line 46
Check whether audit logs contain actor, IP, time, operation, object, result, and failure reason for important operations.
- Distinctive: line 47
Check whether sensitive data is encrypted or desensitized at storage, transmission, logs, export, and backup boundaries.
- Distinctive: line 48
Check deployment files for public ports, admin panels, debug flags, TLS, domain/certificate references, and database/cache exposure.
- Distinctive: line 50
Create a draft report with the helper if desired:
- Very specific: line 61
If implementation cannot be confirmed from source, mark it as 待确认 and list the material needed.
- Distinctive: line 62
Do not report secrets verbatim.
- Distinctive: line 96
Always check carefully for:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dengbao Code Audit
Purpose
Use this skill to perform a source-level security audit for internal systems, especially systems that may be deployed on the public internet and need to prepare for 等保三级-style checks.
This skill does not replace formal MLPS/等保测评. It produces an engineering-focused code audit report with evidence, risk grading, and remediation guidance.
Required Output
Save the final report as Markdown. Prefer:
reports/等保代码安全检测报告.mdIf a report path is requested by the user, use that path.
Workflow
- Identify the project root and scan scope.
- Include source code, configs, deployment manifests, CI/CD files, scripts, README/docs, and environment templates.
- Exclude dependency/vendor/build directories such as
node_modules,.git,dist,build,target,.venv,venv,coverage. - If the system is public-facing, raise the risk level of auth, permission, data leakage, and exposed service findings.
- Run the bundled inventory script when useful:
python3 <skill-dir>/scripts/inventory.py <project-root> --output <workdir>/dengbao-inventory.json- Run the bundled pattern scanner for first-pass evidence:
python3 <skill-dir>/scripts/grep_rules.py <project-root> --output <workdir>/dengbao-findings.json- Read the most relevant code paths instead of relying only on grep output.
- Trace request entry points to auth middleware/guards/interceptors.
- Check whether permission decisions happen on the backend, not only in frontend routes/buttons.
- Check whether audit logs contain actor, IP, time, operation, object, result, and failure reason for important operations.
- Check whether sensitive data is encrypted or desensitized at storage, transmission, logs, export, and backup boundaries.
- Check deployment files for public ports, admin panels, debug flags, TLS, domain/certificate references, and database/cache exposure.
- Create a draft report with the helper if desired:
python3 <skill-dir>/scripts/summarize_findings.py \
--inventory <workdir>/dengbao-inventory.json \
--findings <workdir>/dengbao-findings.json \
--output <project-root>/reports/等保代码安全检测报告.md- Replace script-only conclusions with reviewed findings.
- A regex hit is evidence, not proof.
- If implementation cannot be confirmed from source, mark it as
待确认and list the material needed. - Do not report secrets verbatim. Redact tokens, passwords, private keys, session IDs, and connection strings.
What To Inspect
Load these references as needed:
references/checklist.md: category-by-category audit checklist and evidence requirements.references/severity-rubric.md: risk grading rules and public-facing adjustment.references/framework-patterns.md: framework-specific code paths and common risky patterns.references/remediation-playbook.md: standard remediation guidance and acceptance criteria.references/report-template.md: final Markdown report structure.
Finding Requirements
Each finding must include:
- Risk level:
高危,中危,低危, or待确认. - Category: one of 登录认证, 权限控制, 安全审计, 数据安全, 接口安全, 传输安全, 运维暴露面, 备份恢复, 发布变更, 文档材料.
- Evidence: file path and line number when available.
- Impact: what can go wrong in this system.
- Remediation: concrete code/config/process change.
- Acceptance criteria: how the team can verify the fix.
Reporting Rules
- Lead with an executive summary and top risks.
- Group detailed findings by risk level, then by category.
- Include a coverage table for all 10 check categories, even if the conclusion is
待确认. - Include a prioritized remediation roadmap: 立即整改, 近期整改, 持续治理.
- Separate code-confirmed issues from documentation/process gaps.
- Be practical. Avoid vague statements like "strengthen security" without a testable action.
High-Priority Red Flags
Always check carefully for:
- Public endpoints without backend authentication.
- Authorization enforced only by frontend menus/routes.
- Admin or privileged APIs without MFA or stronger controls.
- Hardcoded credentials, JWT secrets, access keys, database URLs, or private keys.
- SQL/NoSQL query concatenation with user-controlled input.
- Command execution, file path construction, template rendering, or SSRF using user input.
- File upload without extension, MIME, size, content, and storage path controls.
- Sensitive data in logs, exports, responses, localStorage, or backups.
- Open CORS, debug mode, permissive security headers, insecure cookies.
- Docker/Kubernetes/Nginx configs exposing SSH, database, Redis, MQ, admin consoles, or debug ports.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

