Back to skill

Security audit

CTO

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence, citing high-impact host configuration commands, privacy and security weaknesses in its guidance, and supply-chain concerns that are broader than its stated software-engineering purpose.

Consider the verdict before installing. The scan reports concrete concerns around host-level privileged commands, sharing or registering private code externally, and unpinned remote installation or update paths. The assessment is incomplete: Skillspector reports 96.3% coverage, with 14 files partially inspected and some analyzers degraded or limited, so the results do not establish that unreported content is safe.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
Findings (247)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Although the file path suggests benchmark regression guidance, the supplied commands change host-wide CPU configuration using sudo. These operationally significant system changes are not disclosed by the declared software design and engineering purpose and go beyond ordinary codebase implementation details. The chunk contains commands rather than evidence that they were executed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

Although CPU governor tuning can support reproducible benchmarking, this command changes operating-system settings affecting the entire host. That privileged system-administration capability is not disclosed by the architecture and software-development description or declared permissions, and is materially broader than a repository-local implementation detail.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Benchmarking can support the declared engineering role, but these commands change machine-wide CPU behavior rather than project code or documentation. This privileged host configuration capability is not disclosed in the description or declared permissions. The supplied chunk contains the commands; it does not establish that they are automatically executed.

Content

No source excerpt is available for this finding.

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 235)May include surrounding context.

bash
# Set all CPUs to "performance" governor (fixed maximum frequency)
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Disable Turbo Boost

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 244)May include surrounding context.

bash
# Intel
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

# AMD
echo 0 | sudo tee /sys/devices/system/cpu/cpufreq/boost

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 247)May include surrounding context.

echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

AMD

echo 0 | sudo tee /sys/devices/system/cpu/cpufreq/boost

text

### Pin benchmarks to specific CPU cores

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 265)May include surrounding context.

bash
# Disable SMT system-wide
echo off | sudo tee /sys/devices/system/cpu/smt/control

# Or disable individual sibling cores (check /sys/devices/system/cpu/cpu*/topology/thread_siblings_list)
echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online  # if cpu0 and cpu1 are siblings

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 268)May include surrounding context.

echo off | sudo tee /sys/devices/system/cpu/smt/control

Or disable individual sibling cores (check /sys/devices/system/cpu/cpu*/topology/thread_siblings_list)

echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online # if cpu0 and cpu1 are siblings

text

### Combined CI setup script

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 279)May include surrounding context.

md
set -euo pipefail

echo "=== Configuring CPU for stable benchmarks ==="
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo 2>/dev/null || true
echo off | sudo tee /sys/devices/system/cpu/smt/control 2>/dev/null || true

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 280)May include surrounding context.

md
echo "=== Configuring CPU for stable benchmarks ==="
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo 2>/dev/null || true
echo off | sudo tee /sys/devices/system/cpu/smt/control 2>/dev/null || true

echo "=== Running benchmarks on isolated cores ==="

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · references/payload/backend/golang/golang-benchmark/references/ci-regression.md (reported line 281)May include surrounding context.

md
echo "=== Configuring CPU for stable benchmarks ==="
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo 2>/dev/null || true
echo off | sudo tee /sys/devices/system/cpu/smt/control 2>/dev/null || true

echo "=== Running benchmarks on isolated cores ==="
taskset -c 2,3 go test -bench=. -benchmem -count=10 ./... | tee bench.txt

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/payload/backend/golang/golang-continuous-integration/assets/copilot-review-instructions.md (reported line 1)May include surrounding context.

md
<!-- Prerequisites:
  npx skills add https://github.com/samber/cc-skills-golang --agent github-copilot --skill '*' -y --copy
  ln -s .agents .copilot
  Then copy this file to .github/copilot-instructions.md

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 · references/payload/backend/golang/golang-continuous-integration/references/repo-security.md (reported line 40)May include surrounding context.

md
For public/open-source repositories:

1. In **Actions permissions** (link above), set **"Fork pull request workflows from outside collaborators"** to **"Require approval for all outside collaborators"**
2. This prevents untrusted forks from running workflows that consume your Actions minutes or access secrets
3. NEVER use `pull_request_target` with untrusted code — it runs with write access to the base repo

## Secrets and Environments

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/payload/backend/golang/golang-dependency-management/references/workspaces.md (reported line 18)May include surrounding context.

bash
go work init                    # Initialize workspace
go work use ./services/auth     # Add module to workspace
go work use -rm ./old-module    # Remove module from workspace
go work sync                    # Sync workspace with module changes

External code sharing and documentation registration lack privacy warnings, including for private libraries.

High
Category
Output Handling
Confidence
97% confidence
Finding

Creating shared Playground examples transmits code outside the repository, while the adjacent registration guidance expressly includes private libraries. Without an authorization and sanitization boundary, a documentation task can expose proprietary implementation details or embedded sensitive data; this overlaps the private-registration findings.

Content

No source excerpt is available for this finding.

Directs registration of private libraries with external documentation aggregators without an authorization check.

High
Category
Data Exfiltration
Confidence
97% confidence
Finding

Private repository access does not imply permission to grant external documentation services access to that repository or its contents. The unconditional registration instruction crosses that trust boundary and can expose confidential material; it describes the same underlying issue as the other registration finding.

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 · references/payload/backend/golang/golang-documentation/references/code-comments.md (reported line 228)May include surrounding context.

md
//
// # Token Lifecycle
//
// Access tokens expire after 15 minutes. Refresh tokens expire after 7 days.
// Token rotation is automatic — each refresh request issues a new refresh token
// and invalidates the previous one.
//

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

The DELETE route is documentation, not an instruction to misuse a tool, but its implementation deletes all data for a URL-supplied user ID without showing any ownership or administrator authorization check. If adopted without protective routing middleware, it creates an insecure direct object reference allowing unauthorized deletion across the database and downstream services.

Content

Scanner excerpt · references/payload/backend/golang/golang-observability/references/rum.md (reported line 180)May include surrounding context.

GDPR and CCPA require you to let users access, export, and delete their data. Implement API endpoints that propagate these requests to all systems that hold user data — your database, your analytics platform, your CDP.

go
// DELETE /api/users/:id/data — GDPR Article 17 "Right to Erasure"
func (h *PrivacyHandler) HandleDataDeletion(w http.ResponseWriter, r *http.Request) {
    ctx := r.Context()
    userID := chi.URLParam(r, "id")

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/payload/backend/golang/golang-performance/references/memory.md (reported line 169)May include surrounding context.

md
**Rules:**

- Reset state before `Put()` — clear references to avoid retaining large object graphs across GC cycles
- Return copies, not pooled buffers — callers must not hold references to pooled memory
- Don't pool objects >32KB — large allocations bypass the pool's size classes and GC already handles them efficiently
- Don't pool infrequently used objects — pool overhead exceeds benefit when allocations are rare

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/payload/backend/golang/golang-project-layout/references/workspaces.md (reported line 104)May include surrounding context.

bash
go work init              # Initialize new workspace
go work use ./path/to/mod # Add module to workspace
go work use -rm ./path    # Remove module from workspace
go work sync              # Sync workspace with module changes

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/payload/backend/golang/golang-samber-mo/references/advanced-types.md (reported line 221)May include surrounding context.

md
// Get — return current state as result
getter := mo.NewState(func(s int) (int, int) { return s, s })

// Put — replace state
putter := state.Put(100)
_, s := putter.Run(0)  // (_, 100)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · references/payload/backend/golang/golang-samber-slog/SKILL.md (reported line 224)May include surrounding context.

md
## Cross-References

- → See `samber/cc-skills-golang@golang-observability` skill for slog fundamentals (levels, context, handler setup, migration)
- → See `samber/cc-skills-golang@golang-error-handling` skill for the log-or-return rule
- → See `samber/cc-skills-golang@golang-security` skill for PII handling in logs
- → See `samber/cc-skills-golang@golang-samber-oops` skill for structured error context with `samber/oops`

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/payload/backend/golang/golang-security/references/filesystem.md (reported line 17)May include surrounding context.

md
## Directory Traversal — High

Paths like `../../etc/passwd` access files outside intended directory.

**Bad:**

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/payload/backend/golang/golang-troubleshooting/references/common-go-bugs.md (reported line 709)May include surrounding context.

go
// BAD — user can escape the base directory
base := "/srv/files"
userInput := "../../etc/passwd"
path := filepath.Join(base, userInput)
// path = "/etc/passwd" — escaped!

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/payload/backend/golang/golang-troubleshooting/references/common-go-bugs.md (reported line 711)May include surrounding context.

md
base := "/srv/files"
userInput := "../../etc/passwd"
path := filepath.Join(base, userInput)
// path = "/etc/passwd" — escaped!

// GOOD — verify the result stays within the base
func safePath(base, userInput string) (string, error) {