CD Li_codeql_LLM
CodeQL 安全扫描与 LLM 智能分析融合工具。自动检测 CodeQL 安装、扫描指定目录、生成漏洞报告、LLM 分析、Jenkins 集成、输出验证 Checklist。
As a process D 41/100 · Unfinished process — weak spots: result and completion, when it triggers, inputs and preconditions
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 19
✓ No critical or high findings
Medium and low: 19
-
medium Dangerous commands
cmd-shell-rcREADME_BILINGUAL.md:425Writes to a shell startup fileecho 'export PATH=/opt/codeql/codeql:$PATH' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcREADME_BILINGUAL.md:451Writes to a shell startup fileecho 'export PATH=/opt/codeql/codeql:$PATH' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcREADME.md:29Writes to a shell startup fileecho 'export PATH=/opt/codeql/codeql:$PATH' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcREADME.md:255Writes to a shell startup fileecho 'export PATH=/opt/codeql/codeql:$PATH' >> ~/.bashrc
-
low Exfiltration
read-dotenvCONFIG_GUIDE.md:9Reads a .env filecp .env.example .env
-
low Exfiltration
read-dotenvQUICK_START.md:156Reads a .env filecat .env | grep -E "JENKINS|CODEQL"
-
low Exfiltration
read-dotenvREADME_FINAL.md:349Reads a .env filecp .env.example .env
-
low Exfiltration
read-dotenvrun.sh:27Reads a .env filesource .env
-
low Exfiltration
read-dotenvrun.sh:32Reads a .env file (quoted — discussed, not commanded)echo -e "${BLUE}💡 提示 / Tip: cp .env.example .env${NC}"quoted -
low Exfiltration
read-dotenvTEST_REPORT.md:161Reads a .env file (test fixture / example file)cat .env | grep -E "JENKINS|GITEA|CODEQL"
fixture -
low Exfiltration
read-dotenvtest_scan.sh:41Reads a .env file (test fixture / example file; documentation of a security skill)source .env 2>/dev/null || true
fixturesecurity skill -
low Dangerous commands
cmd-eval-dynamictest-20260319-072752/codeql-db/results/run-info-20260318.232800.466.yml:681Dynamic code execution from decoded/untrusted input (quoted — discussed, not commanded)\ os\n\ndef download(path): \n os.system(\"wget \" + path) # NOT OK\n\n```\n\
quoted -
low Dangerous commands
cmd-eval-dynamictest-output/codeql-db/results/run-info-20260318.230324.362.yml:681Dynamic code execution from decoded/untrusted input (quoted — discussed, not commanded)\ os\n\ndef download(path): \n os.system(\"wget \" + path) # NOT OK\n\n```\n\
quoted -
low Dangerous commands
cmd-eval-dynamictest-output2/codeql-db/results/run-info-20260318.230454.430.yml:681Dynamic code execution from decoded/untrusted input (quoted — discussed, not commanded)\ os\n\ndef download(path): \n os.system(\"wget \" + path) # NOT OK\n\n```\n\
quoted -
low Dangerous commands
cmd-eval-dynamictest-output3/codeql-db/results/run-info-20260318.231603.503.yml:681Dynamic code execution from decoded/untrusted input (quoted — discussed, not commanded)\ os\n\ndef download(path): \n os.system(\"wget \" + path) # NOT OK\n\n```\n\
quoted -
low Exfiltration
read-dotenv配置检查报告.md:150Reads a .env file (detector / deny-list definition)- ✅ `run.sh` - 使用 `source .env`
detector -
low Exfiltration
read-dotenv配置检查报告.md:151Reads a .env file (detector / deny-list definition)- ✅ `test_scan.sh` - 使用 `source .env`
detector
A further 2 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 79. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
name-formatname should be kebab-case (lowercase letters, digits, hyphens) - warning
description-no-whendescription does not say WHEN to use the skill (no "use when")
Process rating: all ten parameters 41/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 40Consistency. Frontmatter name (Li_codeql_LLM) differs from the folder (li-codeql-llm)
- 60Tools and files. Uses tools (python) that frontmatter does not declare
- 100Steps. 47 steps
- 100Execution cost. Instruction body is 1208 tokens
- 100Running it twice. No mutating operations
- low 11 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 88: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- -216 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +4Structure: 36 headings
- +3Step-by-step instructions: 47 items
- +4Has examples (18 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 62.