skills/mukul975/anthropic-cybersecurity-skills/hardening-linux-endpoint-with-cis-benchmark/Gen Agent Trust Hub
hardening-linux-endpoint-with-cis-benchmark
Warn
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [CREDENTIALS_UNSAFE]: The auditing script
scripts/agent.pyaccesses sensitive file paths, including/etc/shadow,/etc/passwd, and/etc/ssh/sshd_config. While the script primarily checks permissions and standard configurations, these files contain authentication metadata and sensitive server settings. - [COMMAND_EXECUTION]: The instruction file
SKILL.mdcontains numerous shell commands intended for system modification. These include editing system configuration files (e.g.,/etc/fstab,/etc/modprobe.d/CIS.conf), modifying kernel parameters viasysctl, and reconfiguring the system firewall withufw. - [DYNAMIC_EXECUTION]: The audit agent in
scripts/agent.pyimplements arun_cmdfunction that utilizessubprocess.check_outputwithshell=Truefor commands containing shell operators. This allows for the dynamic execution of shell commands likemodprobe,findmnt, andsystemctlbased on the script's hardcoded logic. - [EXTERNAL_DOWNLOADS]: The skill automates the installation of security packages, such as
chrony,auditd, andopenscap-scanner, from official distribution repositories using theaptpackage manager. It also provides links to official documentation and repositories from trusted organizations such as CIS, NIST, and Ansible Lockdown. - [INDIRECT_PROMPT_INJECTION]: The skill features a results processor in
scripts/process.pythat ingests external data. - Ingestion points:
scripts/process.pyparses OpenSCAP XCCDF results from XML files provided as input. - Boundary markers: None identified in the XML parsing logic.
- Capability inventory: The skill has the capability to execute shell commands, modify critical system files, and install software packages.
- Sanitization: The script uses standard XML iteration but does not explicitly implement safeguards against injection within the XML content or malicious XML structures.
Audit Metadata