Module 5 of 5Free to explore

Personal-data breach: 24/72h reporting, incident and final privacy project

4 hoursTheory and practiceEasy

Lesson 1. Establish what happened first

Imagine support reporting that a participant export opens through a shared link. That is a signal rather than a complete conclusion about content or scope. Establish which file, what information, which access, when and to whom. Posting the table in a general chat to prove the problem could create an additional disclosure. Send minimal facts to the authorised responsible person and preserve original material in an approved location.

Separate observation, hypothesis and confirmed fact. A 200 server response may contain an error page rather than the file. A download event describes activity by the specified account, but does not alone identify a person or establish subsequent use. In our training case, the owner explicitly stipulates that a fictional export was improperly accessible and violated participant rights. That is an input condition, not a result discovered by our script.

Restricting access can stop exposure, while erasing all logs can destroy the ability to understand it. Agree evidence preservation, restrict access and record each action and actor. Use a separate directory for your own training files. Actual incidents follow an approved procedure rather than a learner making production changes.

Lesson 2. Two reporting stages and the starting point

The reviewed Article 21, part 3.1 of 152-FZ concerns established unlawful or accidental transfer, provision, disclosure or access that violates subject rights. For that case, the text provides initial information within 24 hours and internal investigation results within 72 hours from identification of the specified incident. This does not assert an identical notification for every application error. The responsible person examines facts, applicability and the current procedure.

Calculate from the event specified by the provision, rather than the convenient end of a meeting. Preserve multiple identification times where different parties are involved and assess them through the procedure; do not replace an earlier signal with a later management email. Our model’s identification moment is supplied explicitly by the case. Use an explicit UTC offset when converting time zones. A 10:00 timestamp without a zone can describe different instants.

The initial report and investigation have different purposes. The first records known events, suspected causes and consequences, actions taken and the responsible contact. The second develops investigation results. Unknown is preferable to an invented final number of people. This module does not quote fine amounts: they depend on the offence, responsible subject, circumstances and effective law, rather than the word breach alone.

Lesson 3. Check time and integrity locally

Save incident_package.py and run python3 incident_package.py. It uses only a fictional incident, calculates supplied intervals and checks whether copied bytes match an original. SHA-256 helps detect file changes. It does not establish that the contents are true, that collection was lawful, or that a particular person created them.

# incident_package.py: fictional timestamps and temporary evidence only
from datetime import datetime, timedelta
from hashlib import sha256
from pathlib import Path
from tempfile import TemporaryDirectory

def moment(value):
    parsed = datetime.fromisoformat(value.replace('Z','+00:00'))
    if parsed.tzinfo is None:
        raise ValueError('timezone required')
    return parsed

detected = moment('2026-10-01T10:00:00Z')
initial_deadline = detected + timedelta(hours=24)
followup_deadline = detected + timedelta(hours=72)
assert moment('2026-10-02T09:00:00Z') <= initial_deadline
assert moment('2026-10-04T09:00:00Z') <= followup_deadline
assert moment('2026-10-02T10:01:00Z') > initial_deadline
try:
    moment('2026-10-01T10:00:00')
    raise AssertionError('timezone-free input accepted')
except ValueError:
    pass
with TemporaryDirectory() as folder:
    source = Path(folder) / 'training-evidence.txt'
    copy = Path(folder) / 'training-copy.txt'
    source.write_bytes(b'FICTIONAL case P-01; export disabled\n')
    original_hash = sha256(source.read_bytes()).hexdigest()
    copy.write_bytes(source.read_bytes())
    assert sha256(copy.read_bytes()).hexdigest() == original_hash
    copy.write_bytes(copy.read_bytes() + b'changed\n')
    assert sha256(copy.read_bytes()).hexdigest() != original_hash
print('initial deadline:', initial_deadline.isoformat())
print('followup deadline:', followup_deadline.isoformat())
print('late initial, absent timezone and changed copy: detected')
print('no notification sent; no real incident established')

Expect 2026-10-02 10:00 UTC and 2026-10-04 10:00 UTC. Built-in controls detect a late initial time, an absent time zone and a changed copy. The temporary directory is automatically removed. The program does not calculate every period for individual requests, submit a notification or replace investigation. It produces a reproducible check of stipulated conditions.

A matching hash alone also does not establish complete evidence collection. A source might omit records or contain an incorrect timestamp before copying. Record how the source was obtained, which case condition it represents and what was not available. Keep integrity verification separate from factual completeness.

Lesson 4. Final project: connect form fields to correction evidence

Assemble a package for the fictional club using the previous four modules. In the purpose map explain minimal fields, a verified legal decision or an open basis question, recipients and end-of-retention conditions. Separate the policy, processing decision, marketing and internal procedures. Preserve owner access and denial of another person’s record in the access matrix. Distinguish personal-data systems, GIS and possible critical infrastructure in the applicability record.

For the incident, add a timeline, containment, evidence-handling history, known scope and unknown parameters. Retesting should establish that outsiders no longer obtain the export while permitted functionality remains available. Our local project checks this through access_records.py. Its model results must not be described as retesting an actual link or a live website.

Explain remaining questions: who approves retention, which contractor delivers mail, where backups reside, who handles requests, and which legal provisions still need verification? A useful final report lets another employee continue the work. It does not hide uncertainty behind complete compliance or promise a licence, attestation or guaranteed employment.

Practice. Present the package and break one control

Create privacy-project.md with sections for purposes, flows, roles, documents, requests, applicability, incident and retesting. Include the five local programs, commands and actual output. Mark every dataset as synthetic. During your review choose one control: an excessive passport field, another subject’s marketing event, another owner’s record, an empty owner or a late timestamp. Show the detecting check, then restore the permitted baseline.

Acceptance requires an artifact for each claimed operation, visible unresolved legal decisions, source and time for events, a reproducible negative control and conclusions limited by the evidence. Propose the next supervised practical task on an approved environment. The quiz checks lesson understanding; engineering work is assessed through the package and your explanation.

Sources

152-FZ: official Ministry of Labour text, Article 21, part 3.1. Roskomnadzor: official personal-data portal. Python datetime and hashlib. Review date:2026-10-06. The Ministry page lists amendments through 2025-06-24; later changes and the actual notification procedure need checking before practical application.

Try the idea yourself

An event is not yet an incident

Change the conditions and observe this training model. It runs in your browser and does not change your computer.

Select the events you want to include in your explanation.

Observation

Choose conditions above to see an explanation of the result.

Independent exercise · Russian

На учении в пятницу 13 ноября 2026 года подрядчик получил по ошибке файл другой группы. В условии установлено нарушение прав субъектов и применимость порядка уведомления. Для всех участников 16:20 МСК — момент выявления инцидента. Дежурный занёс запись в систему в 17:10.

Evidence

Журнал выдачи отмечает одну выдачу файла с 12 учебными строками. В 16:35 ссылка отключена, подрядчик подтвердил получение, сведений о пересылке нет. В субботу в 11:00 ответственный передал первичное учебное уведомление.

Assignment

Рассчитайте обе крайние отметки для уведомлений и соберите для смены сведения о последствиях, неизвестных обстоятельствах и проверке исправления. Используйте одну часовую зону.

Compare your reasoning

При заданных условиях первые 24 часа заканчиваются 14 ноября в 16:20 МСК, а 72 часа для результатов расследования — 16 ноября в 16:20 МСК. Субботняя передача укладывается в первый срок. Ни регистрация в 17:10, ни первая отправка не переносят второй срок. Зафиксируйте версию файла, ограничьте доступ к доказательствам и поручите ответственному уточнить дальнейшую передачу. Проверка на учебных записях должна показать отказ чужой группе и доступ своей.

Your next step

Choose what you want to do next

First compare your work with the course exercises. Then try the free introductory module of your next topic and check its prerequisites.

Explore every path and focused course
Personal practice environment

Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.