Back to skill

Security audit

createrepo

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward RPM repository management reference, with some destructive cleanup examples that users should verify before running.

Install only if you need RPM repository management help. Before using any deletion examples, list the target files first, confirm the repository path, keep backups, and avoid running wildcard or recursive remove commands on substituted paths without review.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
92% confidence
Finding

The skill presents a forceful recursive deletion command using an absolute path without safeguards. In an agent setting, if the repository path is user-supplied, templated incorrectly, or empty due to variable expansion failure, the command can be abused to delete arbitrary directories on the host.

Content

Scanner excerpt · SKILL.md (reported line 399)May include surrounding context.

bash
# 清理并重新生成
# Clean and regenerate
rm -rf /path/to/repo/repodata
createrepo /path/to/repo

# 验证元数据

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
92% confidence
Finding

The skill presents a forceful recursive deletion command using an absolute path without safeguards. In an agent setting, if the repository path is user-supplied, templated incorrectly, or empty due to variable expansion failure, the command can be abused to delete arbitrary directories on the host.

Content

Scanner excerpt · SKILL.md (reported line 399)May include surrounding context.

bash
# 清理并重新生成
# Clean and regenerate
rm -rf /path/to/repo/repodata
createrepo /path/to/repo

# 验证元数据

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

The example deletes files via a wildcarded absolute path with no preview or confirmation step. If the path or glob is broader than intended, an operator or agent could remove many packages unexpectedly, causing repository corruption or service disruption.

Content

Scanner excerpt · SKILL.md (reported line 416)May include surrounding context.

删除冲突包

Remove conflicting package

rm /path/to/repo/Packages/conflicting-*.rpm createrepo --update /path/to/repo

text

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill includes a destructive deletion command for repository metadata without any warning to verify the target path or note that the operation is irreversible. In an agent skill context, examples are likely to be copied or parameterized automatically, so a wrong path expansion could delete unintended directories and disrupt package distribution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The package removal example permanently deletes RPMs from the repository but does not warn about data loss or advise validating the glob pattern. In repository management, an overbroad wildcard or incorrect path can remove large sets of packages and break consumers relying on the repo.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.