Learning resourcesReviewed · claude-world

Hidden Code Skill Scanner Fixture

Hidden Code Skill is a defensive example folder for developers checking AI-skill scanners; it supplies suspicious sample text but no verified scanner results. It places detection patterns in scripts/setup.py outside a benign-looking SKILL.md, keeping the suspicious operations inside an unexecuted Python string.

Researched 15 Nov 2026

In short.

Hidden Code Skill is a defensive example folder for developers checking AI-skill scanners; it illustrates a file-coverage gap without establishing scanner effectiveness. Its Python file stores examples involving SSH keys, AWS credentials, environment-variable exfiltration and cloud metadata access inside a raw string. Direct execution would invoke whoami. The earlier SAFE 100/100 score is claimed only in a source comment. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected examples/hidden-code-skill folder: SKILL.md and scripts/setup.py at commit d2f189b5e75272edce75f1a44eb5ddacbc7e3e22. The repository-root LICENSE is included as a related notice outside that folder. The scanner implementation, other examples, issue #33 history and later revisions are outside the supplied scope. Nothing was executed. Scanner output, performance and runtime compatibility were not assessed.

The overview

identity

The resource is examples/hidden-code-skill in claude-world/claude-skill-antivirus. It contains SKILL.md and scripts/setup.py. The manifest presents an innocent text-formatting skill; the script identifies itself as an inert fixture illustrating suspicious content outside the manifest.

The original folder address is [https://github.com/claude-world/claude-skill-antivirus/tree/main/examples/hidden-code-skill]. Its useful content is a defensive code example; no formatting implementation is supplied.

assessment

This example is useful for examining whether a scanner inspects companion files beyond SKILL.md. It also illustrates why recognizing suspicious text and establishing malicious execution require different analysis.

It supplies no scanner implementation, captured scanner output or reproducible performance measurement. Its value is as an inspection example and scanner input.

users

The clearest users are developers maintaining AI-skill scanners, reviewers inspecting bundled skill files and educators explaining static security analysis. Beginners can follow the difference between a harmless-looking manifest and suspicious text in a companion script. Experienced developers can examine file discovery and whether flagged operations can actually execute.

capabilities

The fixture supplies literal patterns for reading an SSH private key, reading AWS credentials, sending environment variables through curl and accessing a cloud instance's credential metadata endpoint. These patterns can serve as input for static scanners.

It does not perform those operations through its shown execution path. It also provides no scanner, remediation feature or implemented text-formatting capability.

Using it

requirements

Static inspection requires readable copies of both files. Automated detection requires a separate scanner capable of inspecting the companion Python file. Scanner versions, configuration and expected output formats are unspecified.

The script imports Python's os module. Direct execution uses os.system to invoke whoami, so that path depends on the host shell and command availability. Supported Python versions and operating systems are unknown.

mechanism

The suspicious operations appear inside the raw string HIDDEN_PAYLOAD_FOR_DETECTION. The file contains no call that evaluates or executes that string. Its direct-execution guard invokes whoami through os.system.

The comments say scanning engines recognize the patterns as raw text. The intended demonstration depends on inspecting scripts/setup.py as well as SKILL.md; the scanner implementation needed to establish actual behavior is outside this folder.

setup

Obtain the two files from the pinned source addresses, preserving the scripts/setup.py relative path and the repository license notice. Inspect the folder as text or supply it to a separately chosen static scanner that includes companion files.

No installation procedure, scanner command or integration configuration is documented in these files. Executing setup.py is unnecessary for inspecting its detection patterns.

example

A useful exercise is to compare inspection of SKILL.md alone with inspection of the whole folder. The manifest describes formatting, while the script contains sensitive-file and data-exfiltration patterns.

A scanner might flag those strings when it includes scripts/setup.py. Such an alert would demonstrate recognition of suspicious text, without proving that the suspicious operations execute. No outcome for this exercise was measured.

Assessment & evidence

limitations

This fixture covers one narrow case: suspicious plain text in a Python file outside the skill manifest. It does not establish broader file-format coverage, analysis of executable behavior or protection against real attacks.

The comments attribute an earlier missed detection and SAFE 100/100 score to issue #33. No corresponding issue history, scanner version, command or result accompanies that claim. Detection accuracy, false-positive rates and runtime compatibility are unverified.

reasoning

The demonstrated concern is file coverage: reviewing only a manifest can leave companion scripts unexamined. The source structure makes that concern concrete by putting the suspicious examples under scripts/.

The string's inert placement also matters. A pattern match can identify content worth reviewing, while determining executable harm requires following the code's execution paths. This fixture supports teaching that distinction.

alternatives

For broader assurance, complementary approaches would include a larger collection of inert examples and manual review of whether flagged operations can execute. Their effectiveness is not assessed here.

No named alternative scanner or comparable example collection is documented in the selected files. The surrounding antivirus project's capabilities require separate evidence.

evidence

The manifest is available at [https://raw.githubusercontent.com/claude-world/claude-skill-antivirus/d2f189b5e75272edce75f1a44eb5ddacbc7e3e22/examples/hidden-code-skill/SKILL.md]. It establishes the declared skill identity and formatting claim.

The companion script is available at [https://raw.githubusercontent.com/claude-world/claude-skill-antivirus/d2f189b5e75272edce75f1a44eb5ddacbc7e3e22/examples/hidden-code-skill/scripts/setup.py]. Its code establishes the string placement and direct-execution path; its historical scanner claims remain source comments.

The related repository notice is available at [https://raw.githubusercontent.com/claude-world/claude-skill-antivirus/d2f189b5e75272edce75f1a44eb5ddacbc7e3e22/LICENSE].

Access & freshness

costs

No pricing or operating-cost information is supplied. Costs for a separate scanner, integration, computing resources or maintenance are unknown.

rights

The repository-level MIT License names Lucas as the 2026 copyright holder. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The license disclaims warranties and liability. Preserve its notice when redistributing the fixture.

freshness

The supplied source snapshot was captured on 15 November 2026 at 22:04:53.506 UTC and is pinned to commit d2f189b5e75272edce75f1a44eb5ddacbc7e3e22. The capture time does not establish when the files were authored or last changed.

Current main-branch contents and subsequent changes are unknown.

actions

Use the folder as static input when examining whether a scanner includes files beyond SKILL.md. Check whether scripts/setup.py is inspected, and interpret alerts in light of the unexecuted string and separate whoami call.

Preserve the MIT notice when copying the example. Any decision to rely on a scanner needs broader evidence than this single fixture.

Evidence for this report

LICENSEnotice · checked 2026-11-15
examples/hidden-code-skill/SKILL.mdselected · checked 2026-11-15
examples/hidden-code-skill/scripts/setup.pyselected · checked 2026-11-15