Back to skill

Security audit

Rails TDD Standards

Security checks for vulnerabilities and agentic risk

Overview

ClawScan’s verdict is benign with medium confidence: the scans found no reported executable scripts, while the main notes concern Rails controller examples that appear outside the skill’s stated testing focus and incomplete reference resolution.

The verdict is benign, but confidence is medium and the Skillspector scan is partial: five local references could not be resolved, so the evidence is incomplete. Before installing, consider whether the controller examples and callback guidance fit your needs, and review any unresolved references in the complete skill.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The declared purpose concerns testing practices and factory configuration, whereas the supplied code changes a controller security setting. No surrounding test setup or test-only scope is shown to establish this as a supporting testing detail. The snippet alone does not establish that it is executed or affects production.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The supplied snippet concerns permitting index-keyed nested attributes in application controller code. It contains no test assertions, factories, testing conventions, or connection to a testing workflow that would establish it as a supporting implementation detail of the declared purpose. No external access or other side effects are shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied snippet concerns controller strong parameters and contains no tests, assertions, factories, or testing-specific guidance. Its apparent purpose differs from the declared testing focus. No additional resource access or security-sensitive behavior is shown.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
expect(object).to receive(:method_name).once

# Stub HTTP calls (WebMock)
stub_request(:post, "https://api.example.com/endpoint")
  .to_return(status: 200, body: { result: "ok" }.to_json)

# Allow localhost for system tests (if using WebMock)

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

end

For HTTP-level stubs (WebMock)

stub_request(:post, "https://api.stripe.com/v1/payment_intents") .to_return(status: 200, body: { id: "pi_test_123", status: "requires_capture" }.to_json)

text

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/driver-setup.md (reported line 45)May include surrounding context.

md
it by default.

It is occasionally needed inside a container that lacks the user namespaces the
sandbox requires, and it is occasionally needed on CI images that run as root.
If you do need it, scope it to that environment rather than putting it in the
shared driver:

The factory presented as avoiding callbacks does not actually disable model callbacks.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

In the callback-mitigation section, user_without_callbacks is presented as a way to avoid unwanted callbacks, but initialize_with { User.new(attributes) } only controls object construction. FactoryBot's normal create strategy still saves the model and runs its ActiveRecord callbacks, potentially triggering the welcome email or other side effects the example is intended to avoid.

Content

No source excerpt is available for this finding.