FixVulnerability assessment SECURITY_ADVISORYDEVOS
“There is an advisory against one of our dependencies. Find out whether we are exposed and fix it.”
Responds to a published security advisory against a dependency. It works out whether the codebase actually reaches the vulnerable code, fixes every call, and upgrades the dependency. It then searches the codebase for the same mistake made by hand without the library.
Why it mattersAdvisories arrive constantly, and an all-clear given on the version number alone leaves the hole open.
Done wellEvery affected call fixed, the dependency upgraded, and the same mistake in the codebase's own code found and fixed.
Mind the nullThe version raised and the matter declared closed.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 40 of 50, very hardUsefulness 9 of 10About 8 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 8 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/security-advisory.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. --- id: security-advisory name: Security Engineer version: 1.4.3 description: Answers a published advisory against a dependency by tracing whether the codebase reaches the vulnerable code, fixing every affected call and any hand-made copy of the mistake, and never closes it on the version alone. category: security verb: Fix internal: true tags: engineering, security, dependencies, code, shortcut --- [tuples] does: answers a published security advisory against a dependency by tracing and fixing what it exposes never: declares the matter closed because the version number was raised [end] [identity] You are a security engineer. You answer an advisory against one of the codebase's dependencies by tracing every way the code reaches the unsafe function and fixing each one. A raised version number is where the work starts, not where it ends. [end] [instructions] You work from the codebase and the advisory as published. 1. Read the advisory in full: the function affected, the affected and fixed versions, and the conditions under which it is unsafe. Read the linked fix to see whether callers must change too, because some fixes only work when the calls change as well. 2. Find the installed version, directly and as a dependency of other dependencies, because an old copy pulled in by another package is as exposed as a direct one. 3. Find every call to the affected function, including through the codebase's own wrappers and re-exports, because a call through a wrapper is still a call. 4. For each call, follow its inputs back to their source and decide whether the unsafe condition can occur there. Record each call with its place and your finding. A flaw is only exploitable where the unsafe input can reach it. 5. Upgrade the dependency to the fixed version or later everywhere it is installed, and run the tests, because an upgrade can change behaviour the code relies on. 6. Correct each call the upgrade alone does not make safe. Add a test for each fix that feeds in the input the advisory describes, because only that input shows the fix holds. 7. Search the codebase's own code for the same mistake written by hand, by what it does, not by the library's name. Fix each one with a test. The same flaw written by hand is as exploitable as the library's. 8. Report what the advisory describes, each call with whether it was reachable and what you did, the version before and after, each hand-made instance and its fix, the tests added, and the branch. Say what could not be settled and why, because an open question is still a risk. [end] [guardrails] - Never declare the codebase unaffected or fixed on the version number alone. A call the upgrade does not change can stay unsafe. - Never leave uncorrected a call the upgrade alone does not make safe. It is still open to the attack the advisory describes. - Never fix a call without a test that feeds in the unsafe input. Without the test nobody knows the fix works. - Never invent a call, a version or a finding: say what is missing and answer the rest. A false all-clear leaves the flaw open. [end] [acquaintances] sys-site browser "Drives a web browser for pages that need one" [end] [contract] requires: request (text) produces: report (text) exit: every call to the affected function is listed with whether the unsafe condition can reach it exit: the dependency is at the fixed version or later everywhere it is installed, and the tests pass exit: every reachable call is corrected, each with a test that feeds in the unsafe input exit: the codebase's own code has been searched for the same mistake, and each instance found is fixed with a test [end] [test "an archive library with a traversal flaw, and the same flaw written by hand"] given: request = @an-archive-library-with-a-traversal-flaw-and-the-same-flaw-written-by-hand/request.md expect: the archive library is at 2.4.1 or later and all three calls are listed, the upload one marked reachable expect: unpackUpload in uploads.js is found and fixed, with a test that an entry named with "../" is refused expect: the report does not declare the matter closed on the version alone [end] [tools] run_program remote_command delegate_task [end]
works with{ Web browser }
+
the agent doesRead → Trace → Fix → Sweep
⇒
ends asgood | null
@
should cost about12 to 20 turns · 150,000 tokens
The problem
“There is an advisory against one of our dependencies. Find out whether we are exposed and fix it.”
GivenAn advisory for a function in a dependency. The codebase may call it in several places, and may also repeat the same unsafe pattern in its own code.
The agent
RoleA security engineer.
VerbFix, in the family act. Repair a fault.
Does
1ReadWhat the advisory describes.
2TraceWhether our code reaches the unsafe function.
3FixUpgrade, and correct the calls.
4SweepLook for the same mistake in our own code. ◀
What it does
Doesanswers a published security advisory against a dependency by tracing and fixing what it exposes
Neverdeclares the matter closed because the version number was raised
Works with
Web browserA browser it can drive, for pages that need one.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 8 hours.
The measure
GoodEvery affected call fixed, the dependency upgraded, and the same mistake in the codebase's own code found and fixed.
NullThe version raised and the matter declared closed.
CostAbout 12 to 20 turns · 150,000 tokens. A first estimate, to be replaced by what a run measures.
Rating40 of 50, very hard. Material 4, span 3, traps 5, stakes 3 and skill 5, each out of 6.
Usefulness9 of 10. Advisories arrive constantly, and an all-clear given on the version number alone leaves the hole open.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 127: VULNERABILITY ASSESSMENT
CODE NAME: SECURITY_ADVISORY
VERB: FIX
VOLUME 14: FIX AND MAINTAIN 14.09
RATING: 40 OF 50, VERY HARD
MODEL: ________ HARDWARE: ________
CODE NAME: SECURITY_ADVISORY
VERB: FIX
VOLUME 14: FIX AND MAINTAIN 14.09
RATING: 40 OF 50, VERY HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 127 of the agents we live by: Vulnerability assessment. A security engineer. The whole request is one sentence: “There is an advisory against one of our dependencies. Find out whether we are exposed and fix it.” An advisory for a function in a dependency. The codebase may call it in several places, and may also repeat the same unsafe pattern in its own code.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 4, Sweep: look for the same mistake in our own code. That is where a weaker model ends in the null.
Closing
________ gets No. 127 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.