Back to skill

Security audit

Systemd

Security checks for vulnerabilities and agentic risk

Overview

This skill is a low-risk local reference script, but its content is generic and not very useful as a real systemd guide.

Install only if you are comfortable with a very basic static reference script. Do not rely on it as authoritative systemd documentation; use official systemd/systemctl/journalctl references for operational decisions.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The description says this is a 'Systemd reference tool' for sysops work. The code is only a bash wrapper around hardcoded text sections such as intro, quickstart, debugging, and security. Those sections are largely generic template content and are not genuinely systemd-specific; they mention concepts like networking, migrations, indexing, and hello-world examples that do not map to a real systemd reference. The script also performs no actual systemd-related operations such as showing unit/service information, command references, journal usage, service management patterns, or configuration details. So while the code is harmless and local-only, its actual behavior does not accurately represent the declared purpose in a meaningful way.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/script.sh (reported line 64)May include surrounding context.

sh
## Prerequisites
- Basic understanding of sysops concepts
- Required tools and access credentials
- System meeting minimum requirements

## Installation

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest and header describe a tool for working with systemd, which implies documentation or guidance specifically about systemd units, services, journals, and related commands. Instead, the script only prints broad placeholder content about networking, authentication, migration, indexing, and generic operational practices, with little or no real systemd-specific substance.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The comment at the top and the help text present the script as a 'Systemd Reference Tool.' However, the command outputs are largely template-like and domain-generic, including references to connections, queries, indexing, and data migration that do not match the claimed systemd-specific intent.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.