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 6 of 6
Give the check what it needs
builds on: Agents optimise the signal they can see, Trust boundaries and untrusted input
A TLS, CORS, CSRF or permission error is usually the protection working. If the fix switches the check off instead of satisfying it (trust the right CA, allow the exact origin, send the token, set the right owner), reject it and name the attack it opens.
Terms on this card
- TLS
- Transport Layer Security: the protocol behind HTTPS. It encrypts traffic and, through certificate checks, proves you are talking to the real server.
- 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.
- Origin
- The scheme, host and port of the page making a browser request, e.g. https://app.example.com. Browsers send it in the Origin header.
- CSRF
- Cross-Site Request Forgery: another site makes a logged-in user's browser send a state-changing request that automatically carries their cookies.
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