In this lesson
What you built works. Now: what happens if someone tries to use it against you?
Security in a small project is not about firewalls or jargon. It is a list of simple questions you answer before you show the tool to anyone.
- Know the four places where things go wrong
- Apply a checklist to your project
- Use the AI as a reviewer and know what it does not see
Four places where things go wrong
Secrets in the code
A key or password inside a file that the browser downloads or that went into git.
People's data
A form that asks for more than it needs. The LGPD, Brazil's data protection law, applies to you.
Accounts and access
A weak or repeated password on the hosting, the domain and the AI provider.
Visitor input
Everything someone types is input from a stranger. A huge text freezes the app and costs a lot.
The checklist
| Area | Question |
|---|---|
| Secrets | Is there any key, password or token in a project file? Search with Ctrl + F |
| Secrets | Does the .gitignore exist, and does the key have a monthly limit? |
| Data | Can I justify each piece of personal data in one sentence? |
| Data | Do I know where it is kept, for how long and who has access? |
| Accounts | A unique password and two-factor on all three accounts? |
| Accounts | Are the accounts in my name or the company's? |
| Input | Do the fields have a limit on size and type? |
Real example
A real estate agency had a tool for property visits that asked for the visitor's CPF, the Brazilian taxpayer ID number, "because the agent always asks for it". In the review, nobody could say what it was for. The field was removed. Data you do not store cannot leak.
The AI as a reviewer
The AI that wrote the code also reviews it well. It finds the classic mistakes. But there are things only you can see: whether the hosting password is the same as your email password, whether the domain is in a relative's name, and whether your business really needs that piece of data.
Careful
"The AI reviewed it and said it is secure" is not a guarantee. If the project stores sensitive data or moves money, the review is a job for a professional.
What the pros know
The AI can also make up the name of a library that does not exist. One study analyzed 576 thousand pieces of code generated by models and found that, on average, at least 5.2% of the packages suggested by commercial models, and 21.7% by open ones, were made up. The risk is that someone registers that fake name with malicious code and waits for you to install it. That is why a professional checks whether the package exists, whether people use it and who publishes it, before installing anything the AI suggests.
About the website: a static site does not process forms. Either the button opens WhatsApp with the text ready, and nothing stays with you, or a third-party service receives the data, and then you need to read its policy. Ask the AI for a five-line privacy notice for the footer, saying what the site collects and how a person can get in touch with you.
The LGPD in three sentences
- Collect the minimum, for a reason you can explain.
- Know where it is and be able to delete it if the person asks.
- Do not let it leak, and if it leaks, tell people. Reporting it is an obligation.
Practice · 10 min
- Go through the checklist on the website and the tool. Mark ok, fix or not applicable.
- Paste the request below in each folder and fix the high-severity items first, one request per fix.
- Check the three accounts in your password manager and turn on two-factor wherever it is missing.
project.txt and the sentence "the tool stores [what], in [where], for [how long], accessed by [who]".Summary
- Secrets, data, accounts and input: the four places of risk.
- Two-factor and a unique password are the cheapest protection.
- The AI reviews the code, but it does not see your accounts or your context.
- Check the name of any package the AI tells you to install.
Sources
Read on October 30, 2026.
- Spracklen et al. We Have a Package for You! (arXiv 2406.10279): 576 thousand code samples; at least 5.2% made-up packages in commercial models and 21.7% in open ones.
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses