Coding agent

How to security test an app built with Cline

Updated

Cline works in visible steps, which makes the transcript the best review artifact you have. Test the data paths it built, and treat every command in the transcript as part of the change.

Where this class of bug actually lives in Cline output

  • Tool calls. Installs, migrations, curl calls and file writes, each of which changed something.
  • Incremental edits. A check added in step four and edited out in step nine.
  • Generated scaffolding. Boilerplate with a permissive default that nobody reads because it looks like framework code.
  • Partial features. A data path built for the happy case, with the authorization step noted as a follow-up that never came.

What to try first

  1. Read the transcript end to end and list the commands that changed persistent state.
  2. Test every data path built during the session with two accounts.
  3. Look for follow-up TODOs the agent wrote about auth, validation or error handling.
  4. Check the scaffolding it generated for wildcard CORS, open buckets and debug flags.

A reproduction you can keep

The transcript gives you the target list. Test each one:

Data paths built in the session
grep -nE 'TODO|FIXME|follow-up|later|for now' -r app/ src/ lib/ | head -20

for r in /api/<new-1> /api/<new-2>; do
  printf '%-16s ' "$r"
  curl -sS -o /dev/null -w '%{http_code}\n' "https://staging.example.com$r/1003" \
    -H 'Authorization: Bearer ***'
done

# vulnerable: a TODO about authorization, and 200 on both
# fixed: no TODO, 404 on both, identical to a fake id

What "fixed" has to look like

Close every authorization TODO the agent left, then verify each path with two accounts. The transcript is a checklist, and an unfinished item in it is an unfinished control.

Where people get this wrong

  • A TODO written by the agent is a known gap that then gets forgotten.
  • Scaffolding looks like framework code and gets less review than hand-written code.
  • Stepwise edits can undo an earlier fix without any single diff looking wrong.

What Offense does here

Offense runs an agent swarm against your app in a disposable sandbox, keeps the request, the identity and the vulnerable response as evidence, and replays the same attack after the fix so the retest is a control comparison rather than a green check. It does not read your source and it does not patch your code: the finding goes to your coding agent with the reproduction attached. The hosted workspace is invite-only — join the waitlist — and the free dependency audit in /install needs no account.

Questions this page answers

What is the best review artifact for Cline work?

The step transcript. It shows commands and edits that no final diff captures.

Are agent-written TODOs safe to leave?

Not when they concern authorization or validation. Treat them as open findings.

Written by Offense Research, reviewed December 2, 2026. Correct something? Email imran@offenseresearch.com.