GB/T Code Security Audit
Paste the following prompt into your AI chat to install this skill:
Please install @user_9b59adcf/zzcp-gbt-code-audit into your AI assistant according to https://skillhub.cn/install/skillhub.md.
About this skill
Compliance-oriented code auditing
Security acceptance reviews often split into two needs: locating risky API calls quickly, and reasoning about context-dependent issues such as business logic and cross-file data flow. gbt-code-audit targets Java, C/C++, C#, and Python code, using GB/T 34943, GB/T 34944, GB/T 34946, and GB/T 39412 as the basis for classifying and grading findings. It produces a traceable Markdown audit report where each issue includes code snippets, line numbers, severity, GB/T mapping, problem description, and remediation advice.
Dual-engine workflow and limits
The workflow has three layers: quick_scan uses regex patterns to detect high-risk function calls and writes findings/baseline/*.md; an LLM checks context, marks baseline findings as valid or false positives, records missed issues in findings/llm_audit/*.md, and can run in parallel agents; finalize_report deduplicates by file:line:type, validates format and line numbers, and outputs audit_report_*.md. Coverage includes command execution, SQL construction, file operations, weak encryption, hardcoded credentials, authentication/authorization, state transitions, concurrency, and memory-safety issues.
Use it for project acceptance, compliance review, and code quality assessment, not as the sole security test. It assumes readable source code, a clear directory layout, and accurate line references. Obfuscated code, missing context, or private protocols may leave complex vulnerabilities undiscovered, so pair it with manual review and dynamic testing.
Use Cases
- Acceptance: scan Java/Python code and export a GB/T Markdown report.
- Compliance: map findings to GB/T rules and check line refs.
- Audit: detect risky APIs, weak crypto, hardcoded credentials.
- Review: LLM checks auth, permissions, and data-flow flaws.
Best For
- Delivery manager needing a compliant Markdown code-security report for acceptance.
- Compliance engineer mapping findings to GB/T standards and validating line refs.
- Backend engineer checking command execution, SQL injection, and weak crypto.
- Tech lead producing a pre-release audit report with remediation advice.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Restores Lanhu designs to target framework code using schema JSON, design tokens, and image assets.
Automatically detects engineering or competition code, analyzes bugs, vulnerabilities, algorithm complexity, and edge cases, then produces risk-level findings with before/after fixes.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.