Key takeaways
- Skills, MCP servers, hooks and rules files run with your shell, files and credentials, so treat them like dependencies.
- Scanners judge content at one moment; a lockfile tells you what changed since you approved it.
- Lockward pins six agents' config, fails CI on unapproved changes and runs offline with no account.
- It is change control, not malware detection; use it alongside a scanner.
When you install a package, your package manager writes a lockfile. When your AI coding agent loads a skill, an MCP server or a hook, nothing does. Those files run with your shell, your files and your credentials, and in 2026 they became a supply chain that attackers work on.
What happened this year
A campaign researchers named ClawHavoc planted malicious skills in a public skill marketplace; one analysis counted 1,184 malicious packages from 12 author accounts. An MCP server package for sending email, postmark-mcp, behaved for 15 releases and then began copying every message to an attacker. In June, Trail of Bits showed that four malicious skills got past every skill scanner they tried.
Their recommendation was not a better scanner. It was the boring control that works for every other dependency: pin versions, and have a person approve changes.
A lockfile for agent config
Lockward discovers what Claude Code, Cursor, Codex, Gemini CLI, Windsurf and GitHub Copilot load, at project and user scope:
- every file in a skill, including dotfiles, binaries and archives, hashed in full however large;
- MCP server definitions: command, arguments, package and version, URL, and the names of environment variables and headers, never their values;
- hooks and the scripts they call;
- rules and instruction files at any depth, and the settings that grant permissions.
lockward lock writes all of that to lockward.lock. lockward verify compares the live state with the lockfile and evaluates a built-in policy: unpinned npx or uvx servers, hooks that call the network, inline secrets, settings that auto-approve tools. In CI, verify --frozen fails the build on any change.
When something changes, lockward diff shows it at the line level, and lockward approve <id> accepts that one entry and nothing else.

What it deliberately does not do
Lockward is not a malware detector. It tells you what changed since you approved it; people, and scanners if you use them, decide whether the change is safe. Something malicious that you approve on day one stays approved. --scanner-sarif attaches findings from tools such as NVIDIA SkillSpector or Cisco skill-scanner to the matching entries, so the two work together.
It also never executes what it scans, makes no network connections by default, needs no account, and keeps any LLM out of the pass/fail decision.
Try it
brew install breaktroughf1/tap/lockward # or: npx lockward / uvx lockward
cd your-repo
lockward init && lockward lock
git add lockward.lock lockward.policy.yaml .lockwardignoreThen add the Lockward Verify action to your pull requests. Every release is signed with Sigstore and carries SLSA build provenance.
The source, the threat model and the lockfile specification are on GitHub under Apache-2.0. The lockfile format is the part we most want feedback on.
Frequently asked questions
Is Lockward a malware scanner?
No. It records what you approved and reports any change after that. Whether a change is safe is decided by a person, optionally with a scanner's findings attached.
Which agents does it support?
Claude Code, Cursor, Codex, Gemini CLI, Windsurf and GitHub Copilot, at project and user scope.
Does it send my code anywhere?
No. It makes no network connections by default, needs no account and has no telemetry.

Written by
Co-Founder & CTO
Excels in developing innovative hardware and software solutions. With expertise in IoT, embedded systems, and data analytics, committed to tackling real-world challenges through advanced technology.




