Module 4 · Responsibility and final project

Security of what you built

Lesson 10 of 12 9 min lesson Updated on October 30, 2026
Progress in the course83%

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.

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

AreaQuestion
SecretsIs there any key, password or token in a project file? Search with Ctrl + F
SecretsDoes the .gitignore exist, and does the key have a monthly limit?
DataCan I justify each piece of personal data in one sentence?
DataDo I know where it is kept, for how long and who has access?
AccountsA unique password and two-factor on all three accounts?
AccountsAre the accounts in my name or the company's?
InputDo 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

Practice · 10 min

  1. Go through the checklist on the website and the tool. Mark ok, fix or not applicable.
  2. Paste the request below in each folder and fix the high-severity items first, one request per fix.
  3. Check the three accounts in your password manager and turn on two-factor wherever it is missing.
Do a security review of the files in this folder. Do not change anything. Look for: (1) a key, password or token in any file; (2) personal data that is stored and whether each item is necessary; (3) fields with no size limit. Format: a list by severity (high, medium, low), with file and line. Do not praise.
Deliverable: the checklist in project.txt and the sentence "the tool stores [what], in [where], for [how long], accessed by [who]".

Summary

Sources

Read on October 30, 2026.

  1. 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.

Lesson 10 of 12

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp