Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/CiscoDevNet/essentialsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/ciscodevnet/essentials/ess-dockerfile-runtime-copy)<a href="https://agentmods.dev/rules/ciscodevnet/essentials/ess-dockerfile-runtime-copy"><img src="https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-dockerfile-runtime-copy/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/ciscodevnet/essentials/ess-dockerfile-runtime-copy"><img src="https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-dockerfile-runtime-copy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00405 | $0.00405 |
| Opus 5.5 | $0.00162 | $0.00162 |
| Sonnet 5.5 | $0.00081 | $0.00081 |
| Haiku 4.5 | $0.00040 | $0.00040 |
Grade A, and why
ess-dockerfile-runtime-copy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Runtime image copies stay root-owned
A container should not be able to rewrite its own application code. If the runtime user owns the files it runs, a compromised process can change them, which breaks least privilege and container immutability. SonarQube reports this as docker:S6504, on any COPY or ADD whose --chown user is not root.
In the final stage, copy application files as root and drop the write bit. The runtime user can read and traverse them and cannot modify them.
# Bad — node owns the app and can rewrite it
COPY --from=build --chown=node:node /app/dist ./dist
USER node
# Good
COPY --from=build --chown=root:root --chmod=555 /app/dist ./dist
USER node
--chmod=555 is read and execute for everyone, so directories stay traversable and files stay readable. The same flags apply whether the runtime user is node, nextjs, or any other non-root account.
Rules
- On every runtime-stage
COPYorADDof application files, set--chown=root:root --chmod=555. - Do not
--chownto a non-root user or a uid other than0. - A path the process must write (cache, uploads, temp) is a separate empty directory. Do not loosen the application copy to make that path writable.
- Build-stage copies that the builder then writes, such as
package.jsonbeforenpm ci, stay default root and omit--chmod=555. Still do not--chownthem to a non-root user.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 30 lines · 405 tokens per session scan A 15c616ed52d8
ess-dockerfile-runtime-copy is a cursor rule published in the GitHub repository CiscoDevNet/essentials (7 stars, last pushed 8d ago), licensed Apache-2.0. It adds 405 tokens to every session, about $0.0016 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.
ess-dockerfile-runtime-copy compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ess-dockerfile-runtime-copyCiscoDevNet/essentials | Cursor rule | 7 | 8d ago | Apache-2.0 | A | 405 | Cursor |
| dashboard-testingAutomattic/wp-calypso | Cursor rule | 13k | yesterday | GPL-2.0 | A | 0 | Cursor |
| cursorrulesAmoabaKelvin/logdeck | Cursor rule | 152 | 13d ago | GPL-3.0 | A | 43 | Cursor |
| docker-deploymentmadebyaris/poinf-of-sales | Cursor rule | 159 | 1y ago | MIT | C | 0 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 202k | 9d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | today | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | yesterday | Apache-2.0 | A | 1,147 | Cursor |