Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Security checks switched off to make it work
card 2 of 6
The error was the protection working
builds on: Agents optimise the signal they can see, Trust boundaries and untrusted input
Before sending anything, the script asks: "is this really the metrics server?" The server shows its certificate, which is signed by your company's internal CA. By default requests trusts only well-known public CAs, so it can't confirm that signature and stops. The check did its job.
`verify=False` stops asking. Whoever answers is accepted, whether that is the real API or an attacker on the network. `verify="/path/to/internal-ca.pem"` gives the script the right answer: it still checks every certificate, now against your internal CA. The agent chased the proxy signal "error gone" and couldn't know which CA you use.
**Later cost:** nothing ever fails again, so the hole ships silently. A `# dev only` comment next to the flag doesn't stop it running in production.
CORS, CSRF and permission errors work the same way: the protection is doing its job.
verify=False
script ──▶ [attacker?] ──▶ API
no check: anyone answering is accepted
verify="internal-ca.pem"
script ──cert checked vs internal CA──▶ API ✓
script ──impostor's cert──▶ rejected ✗
Terms on this card
- proxy signal
- A visible stand-in for the real goal, such as tests green or error gone, that the agent can satisfy without achieving the goal.
- Later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, a security hole or a maintenance burden.
- certificate
- The proof of identity a server presents during the TLS handshake: it names the host and is signed by a CA.
- CA
- Certificate Authority: an issuer whose signature on a certificate a client trusts. Companies often run their own internal CA for internal services.
- CORS
- Cross-Origin Resource Sharing: response headers that tell a browser which other websites' scripts may read the response.
Lesson goal: Recognise protections turned off to get past an error: `verify=False`, Go's `InsecureSkipVerify`, Node's `rejectUnauthorized: false`, `Access-Control-Allow-Origin: *`, disabled CSRF protection and `chmod 777`. Explain the attack each one opens up. ·
the whole lesson