Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

Task 1 A: Risks, security and the law for Netheret

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

60 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

The help desk that let the burglar in

A help desk app knows a lot. It knows which customers have old computers. It may hold notes such as "the office alarm code is on the wall".

If a stranger got into that app, they would know exactly where to attack. So the proposal must say what could go wrong, and what the app does to stop it.

Key words

WordWhat it means
RiskSomething that could go wrong and cause harm.
MitigationAn action that makes a risk less likely or less harmful.
DatabaseAn organised store of data, such as every ticket.
SQL injectionTyping database code into a form to trick the app.
Cross-site scriptingSneaking a script into a page so it runs in other people's browsers.
EncryptionScrambling data so only the right person can read it.
CopyrightThe right of a maker to control copies of their work.
UK GDPRThe UK law on how personal data (facts about a person) is used.

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can explain how the Netheret app will reduce its main risks and meet the law.

Starter: last lesson

Have a go

Starter: last lesson

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Each security risk needs a named fix

For each risk, say three things. What could happen. How likely and how harmful it is. And the mitigation: what the app does about it.

Name a real technique, not a hope. "The app will be secure" is a hope. "Every database query (a request for data) uses parameters (placeholders for typed values), so typed code is treated as text" is a mitigation.

Worked example: security risks and mitigations

RiskWhat could happenMitigation in the app
SQL injectionA form is used to read or delete every ticketAll queries go through SQLAlchemy with parameters, never by joining text
Cross-site scriptingA comment carries a script that steals staff sessionsJinja escapes every value it shows. Input is checked.
Data read on the waySomeone on café wifi reads a passwordThe live site uses HTTPS, so traffic is encrypted
Stolen passwordsA leaked database shows every passwordOnly a hash is stored, made with Werkzeug
Wrong person sees dataA customer guesses another company's request addressEvery page checks the role and the company
Forged form postsA trick page makes a manager's browser close ticketsEach form carries a secret token the server checks

The cells students fill in are left blank in this preview.

Check: security risks

Have a go

Check: security risks

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Match each risk to its mitigation

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Wider issues are about people, not only code

Some risks are about how the app is used. Netheret holds details of its customers' systems. That is sensitive.

A wrong fix in the knowledge base wastes time or breaks something. Articles need an author, a date and a "did this help?" count.

Updates must suit the reader. Customers see plain words; internal notes stay hidden from them. Users make mistakes, so every form explains an error next to the box.

Worked example: wider issues and responses

IssueHow the design responds
Sensitive customer detailsOnly staff see system notes. Never store a customer's passwords in the app.
Wrong or old fixesEach article shows its author and last update. Readers mark it helpful or not.
Messages at the wrong levelEach update is marked internal or visible to the customer.
User errors on formsClear messages beside the box, and the typed text is kept.
Code made by othersUse only Flask and its own parts. Credit any outside code and AI code.

The cells students fill in are left blank in this preview.

Check: wider issues

Have a go

Check: wider issues

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Link each law to the design

The proposal must show how the app follows the law and good guidelines. A list of law names is not enough.

For each one, say what it means for Netheret, then what the design does. For example, UK GDPR says keep only the personal data you need. So the app asks a customer for a name, email and company, and nothing more.

Worked example: laws and guidelines

Law or guidelineWhat it means hereWhat the design does
UK GDPR and the Data Protection Act 2018Personal data is kept safe, to a minimum, and people are told how it is usedA privacy page, few fields, hashed passwords, roles
Computer Misuse Act 1990Getting into a system without permission is a crimeSign-in on every page, and a log of who changed a request
Equality Act 2010Services should not shut out disabled peopleLarger text, high contrast, keyboard use, labels
WCAG 2.2 (a W3C guideline)A checklist for web pages that everyone can useAim for level AA on every page
Copyright, Designs and Patents Act 1988Code and text belong to whoever made themCredit outside code and AI code, and check each licence (the terms of use)
BCS Code of ConductA professional body's rules for IT workWork in the public interest, and be honest about what the app can do

The cells students fill in are left blank in this preview.

A common mistake

Warning

Many students think naming a law is enough: "The app will follow GDPR." It earns little. Say what the law asks, then point to the feature that meets it, such as the privacy page or the roles. A reader should see the link from the law to the design.

Your turn: risks and law

Part 1. Make a risk table for the Netheret app with six risks. Give each: what could happen, how likely (low, medium, high), how harmful (low, medium, high), and a named mitigation. Include at least four security risks and two wider issues. Part 2. Make a table of at least four laws or guidelines. For each, say what it means for Netheret and which feature of your design meets it. Part 3. Write one paragraph for the client, in plain words, on how their customers' data is kept safe.

A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.

Make a free account to save your work, or press Start lab to work through the whole lesson.

Exit quiz

Have a go

Exit quiz

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.