Please enable JavaScript to use CodeHS

Cybersecurity

What Is Incident Response?

$ what-happens --first-hour --after-cyberattack

An alarm goes off at 9:02 a.m. A laptop at school is acting strangely. What do you do next? Incident response is the plan security teams use to stop a cyberattack fast. Learn the six phases, then try the job yourself as the on-call responder.

Security ~15 min Beginner friendly
01 / THE BIG IDEA

A fire drill for computers

Your school has a fire plan. Everyone knows the alarm, the exits, and who counts the students outside. Nobody panics, because the plan was made before the fire. Incident response is the same idea for cyberattacks.

Computers get attacked all the time. Someone steals a password. A bad link installs a harmful program. A criminal locks a school's files and asks for money. You cannot stop every attack from starting. What you can do is notice it quickly, stop it from growing, fix it, and learn from it. That whole job is incident response.

Here are the words you will see on this page. Each one comes back later.

incident
A security problem that has really happened, like a hacked account or an infected laptop.
alert
A warning sent by a tool when something looks wrong. It might be real or a false alarm.
log
A diary kept by a computer. Each line says what happened, when, and who did it.
malware
Harmful software made to damage computers or steal things. A virus is one kind.
phishing
A fake message or web page that tricks you into giving up a password or opening something bad.
ransomware
Malware that locks your files and demands money to unlock them.
isolate
Cut a device off from the network so it cannot talk to anything else.
evidence
Clues, like logs and files, that show what the attacker did. Responders try hard to keep it.

Want the full story of one common attack? See What Is Ransomware?

02 / THE SIX PHASES

Prepare, detect, contain, eradicate, recover, learn

Most teams follow the same six steps. Think of them as a loop, because the last step feeds the first one. Pick a phase to see what happens in it.

PHASE EXPLORERselect a phase

THE LOOP never really ends 1Prepare 2Detect 3Contain 4Eradicate 5Recover 6Learn

Prepare

Question: are we ready before anything goes wrong?

Make a plan and practice it. Keep backups of important files. Write down who to call. Turn on logs so computers keep their diary.

Like a fire drill: you do it on a calm day so it feels easy on a bad one.

One more thing. In real life the phases overlap. A team may start fixing one laptop while it is still watching for more. The order is a guide, not a cage.

03 / WHY SPEED MATTERS

Every minute gives the attacker more room

Picture a drop of ink in a glass of water. At first it is one small spot. Wait, and it spreads everywhere. Many attacks work like that. An attacker lands on one computer, then looks for other computers on the same network, and tries to reach them too.

Try the demo. It shows 16 computers on a school network. Slide to choose how many minutes pass before someone isolates the first infected computer.

SPREAD DEMOa simple model, not real data

0 min10 min60 min

Real attacks vary a lot. Some spread in seconds and some wait for days. The lesson is the shape: waiting costs more every minute.

Speed also matters for the people involved. A small problem fixed in an hour might mean one teacher gets a new laptop. The same problem left for a week could mean a whole district loses access to grades, lunch accounts, and files.

But fast does not mean frantic. Pulling every plug in the building is quick, and it also stops the school from working. Good responders move fast on the small, smart step first. You will feel that trade-off in the simulator.

04 / THE FIRST HOUR

What happens in the first hour

Every incident is different. Still, the first hour of a good response often follows this rhythm.

  1. MIN 0 to 5

    Check that it is real

    An alert came in. Is it a false alarm? The responder looks at the alert, asks the person who saw it what they did, and decides how serious it is.

  2. MIN 5 to 15

    Contain it

    Isolate the affected device. Sign the user out. Block the bad web address. Pick the smallest step that stops the spread without breaking everything else.

  3. MIN 15 to 30

    Save clues and call the team

    Copy the logs. Take notes with times. Open a shared channel, name a leader, and send a short, honest update to the people who need to know.

  4. MIN 30 to 60

    Scope it and plan the cleanup

    Answer three questions. How did they get in? What did they touch? Are they still here? Then plan how to remove them and restore things safely.

Notice what is missing: wiping everything and starting over. That feels powerful, but it destroys the clues you need to learn how the attacker got in.

05 / WHO DOES WHAT

An incident is a team sport

Big companies have a whole team. A small school might have two people who share every job. The jobs still exist, so it helps to know them.

Incident commander

Makes the big decisions, keeps everyone on the same page, and decides when to ask for help.

Like the coach calling plays.

Security analyst

Reads alerts and logs to work out what is really going on and how far it went.

Like a detective reading clues.

IT administrator

Knows how the systems are wired. Isolates devices, resets accounts, and restores backups.

Like the building engineer with the keys.

Communicator

Tells staff, families, and sometimes the public what is happening, in plain and truthful words.

Like the announcer on the loudspeaker.

Legal and leaders

Decide about laws, reporting, and big choices, like whether any money is ever paid to attackers.

Like the principal and the school board.

Scribe

Writes down every action with the time. Later, that list is how the team learns and proves what happened.

Like the one who keeps the game stats.

If you like the idea of doing this for a living, read Cybersecurity Careers. Many of the tools that spot attacks now use AI, which you can explore in How AI Spots Cyber Attacks.

06 / TRY IT: ON-CALL SIMULATOR

You are the on-call responder

Maple Ridge School District is made up, but its problems are very real. You are the person on call today. Alerts will arrive. For each one, pick an action. Every choice changes four meters.

  • Attacker reach is how much of the network the attacker can touch. Lower is better.
  • School disruption is how much your actions get in the way of teaching. Lower is better.
  • Evidence kept is how many clues you still have. Higher is better.
  • Trust is how well people are informed. Higher is better.

There is no single secret path. Different choices lead to different next alerts, so play it more than once.

MAPLE RIDGE SD / ON-CALL CONSOLEfictional scenario

9:02 AM T+0 min
Alert 1 of 6
07 / TRY IT: ORDER THE PHASES

Put the response in order

Each card below describes an action. Tap or click a card to drop it into the next open step, or drag it to a step. Tap a placed card to take it back. When all six steps are filled, press Check.

PHASE SORTER0 of 6 placed

Actions to place

    Your order, first to last

      08 / TRY IT: READ THE LOG

      Spot the suspicious entries

      Logs are how responders see what happened. Below is a small slice of a fake log from Maple Ridge. Most lines are boring and normal. Some are not. Click each line you think is suspicious, then press Check.

      Hints. Ask: Is this the right time? Is this the right place? Is this something this person normally does? One fact can be harmless alone and strange in a group.

      EMAIL AND FILE LOG / SAMPLEtimes are 24-hour

      Teacher ms.garcia normally works at school, 7:30 AM to 4 PM, on the school network (addresses starting 10.20).0 flagged

        Together, the suspicious lines tell a story: someone guessed a password at night, got in, hid a way to keep reading the email, copied files, and turned off the antivirus. A responder who reads the story knows what to contain and what to reset.

        09 / QUICK ANSWERS

        Quick answers

        What is incident response in simple words?

        Incident response is the plan and the actions a team uses when a security problem happens, such as a stolen password or a virus. The goal is to stop the problem quickly, fix it, get back to normal, and learn how to prevent it next time.

        What are the phases of incident response?

        A common model has six phases: prepare, detect, contain, eradicate, recover, and learn. Teams get ready before anything happens, notice a problem, stop it from spreading, remove the attacker and their tools, bring systems back safely, and then review what happened.

        Why does speed matter so much in a cyberattack?

        Attackers often try to move from one computer to another and look for valuable data. The longer they have access, the more devices and information they can reach. Acting fast keeps the problem small and the cleanup cheaper.

        What is the difference between containment and eradication?

        Containment stops the problem from spreading, for example by disconnecting an infected laptop from the network. Eradication removes the cause, such as deleting the malicious program, closing the security hole, and resetting stolen passwords.

        Should an organization pay a ransom after a ransomware attack?

        Security experts and law enforcement generally advise against paying. Payment does not guarantee the files come back, it can encourage more attacks, and the attacker may still have access. It is a decision for leaders and legal advisers, made with the response team, not something one person decides alone.

        What should I do if I think my account was hacked?

        Tell a trusted adult or your school IT team right away. From a device you trust, change the password to a new unique one, sign out of other devices, and turn on multi-factor sign-in if it is offered. Do not delete messages, because they can help the responders understand what happened.

        10 / QUICK QUIZ

        Quick quiz

        1. A responder confirms that a laptop is infected. Which phase comes next?

        2. Why do responders often isolate an infected laptop instead of wiping it right away?

        3. Why do good teams hold a no-blame review after an incident?

        Keep learning about cybersecurity

        You just practiced the first hour of a response. Next, meet the attack that causes many real incidents, see what a data breach means for the people inside the data, and find out how people and AI tools work together to spot trouble.

        Maple Ridge School District, its people, and its alerts are fictional. IP addresses in the sample log are reserved for examples.