AP® Cybersecurity

Detecting Attacks on Devices | AP® Cybersecurity Topic 4.4

Learn how endpoint alerts, logs, behavior analysis, malware signs, EDR, and safe incident response help detect attacks on computers and mobile devices.

AP® Cybersecurity · Unit 4: Securing Devices · Topic 4.4

Detecting Attacks on Devices

Device attack detection is the process of collecting and comparing observations from users, security tools, device behavior, files, accounts, logs, and network activity to identify whether an endpoint may be under attack or compromised—and then escalating the evidence for safe, authorized response.

From weakness to evidence

Precise vocabulary prevents overreaction. A warning is a reason to investigate, not automatic proof of compromise.

Differences among vulnerabilities, attacks, alerts, and indicators of compromise
TermMeaningDevice example
VulnerabilityA weakness that could be used or triggered.An unsupported tablet operating system has an unpatched flaw. The flaw may exist even if nobody has attacked it.
AttackAn attempt to compromise confidentiality, integrity, or availability.A malicious message tries to install remote-access malware on the tablet.
Security alertA notification from a tool, service, or person about activity that meets a detection rule or threshold.Mobile protection reports that an app contacted a suspicious destination. The alert still needs validation.
Indicator of compromise (IOC)An observable artifact or event that may be associated with compromise.A known-malicious file hash, unauthorized account, disabled security agent, or threat-listed network destination.

Detection reasoning: observation + baseline + context + corroborating evidence → a defensible decision.

Know normal before judging unusual

A baseline describes expected performance, installed software, accounts, permissions, network destinations, resource use, and security-tool status. Legitimate updates, heavy games, backups, weak batteries, and hardware faults can resemble attacks.

Device warning signs

A single symptom may be harmless. Multiple unexplained signs appearing together—especially after a suspicious download, login, attachment, or physical-access event—deserve prompt investigation.

PERFORMANCE

Slowness, crashes, overheating, or rapid battery drain may reflect hidden processing, crypto-mining, recording, network activity, a damaged battery, a buggy update, or ordinary high usage. Compare with task, time, and device health.

SOFTWARE

Unexpected pop-ups, apps, browser extensions, homepages, search providers, profiles, scheduled tasks, or configuration changes can indicate unwanted software or unauthorized administration.

CONTROLS

Antivirus, firewall, updates, backups, logging, or endpoint agents being disabled without an approved change is serious. Attackers may weaken visibility or protection; software conflicts can also be responsible.

IDENTITY

Unknown user or administrator accounts, new permissions, repeated failures, unfamiliar logins, password resets, MFA prompts, or session changes may indicate account misuse or recovery abuse.

PROCESSES

Suspicious files, processes, services, persistence items, or background activity include unknown software starting automatically, unsigned or unusual code, and processes running from unexpected locations.

NETWORK

Unexpected connections, regular beacon-like contacts, unusual remote sessions, or new listening services may reflect malware command-and-control or remote access. Compare with approved apps and destinations.

SENSORS

Camera, microphone, Bluetooth, NFC, screen-sharing, accessibility, or location indicators appearing without expected use can signal excessive app permissions, accidental activation, or surveillance.

DATA

Unexplained mobile data, outbound traffic, cloud synchronization, storage loss, or sudden large transfers may indicate exfiltration, malware downloads, backup activity, updates, or normal media use.

FILES

Missing, renamed, corrupted, newly encrypted, or inaccessible files and unfamiliar extensions can indicate ransomware or destructive activity. Stop working on affected data and report immediately.

PHYSICAL

Broken seals, altered ports, an unexplained device return, unknown USB accessories, or unexpected management prompts may indicate tampering or unauthorized peripherals.

Malware patterns and their possible evidence

Malware categories and potential defensive indicators
ThreatPossible signsImportant caution
General malwareUnknown processes, persistence, blocked security updates, suspicious downloads, unusual outbound connections, or endpoint alerts.Malware may be quiet; absence of visible symptoms does not prove safety.
RansomwareFiles become encrypted, renamed, or inaccessible; ransom instructions appear; shared files change rapidly; backup or recovery services stop.A ransom message is strong evidence, but authorized responders should still determine scope, earlier compromise, and possible data theft.
SpywareUnexpected sensor use, location access, screenshots, clipboard reads, browser changes, messages, or unexplained data transfers.Legitimate apps may use the same capabilities; permission, publisher, and timing context matter.
KeyloggerSecurity tools detect input capture, unknown accessibility permissions, suspicious drivers, hooks, or processes; accounts are misused after typing credentials.Account misuse alone does not prove a keylogger; credentials may have been phished or reused.
Remote-access malwareUnapproved remote sessions, new services, screen movement, webcam use, disabled controls, unfamiliar accounts, or repeated external connections.Legitimate support tools can look similar. Confirm authorization, owner, time, and change records.

Ransomware can be the final stage, not the first

Before encryption begins, attackers may steal credentials, move between systems, disable recovery, or copy data. Detection and recovery should examine earlier logs and other devices rather than treating the ransom note as the beginning of the incident.

Security tools, logs, and management reports

Antivirus and antimalware

Scan files, memory, applications, and behavior for known or suspicious activity. Quarantine and alerts require review; current engines and signatures matter.

Endpoint detection and response (EDR)

Collects endpoint telemetry and connects process, file, identity, persistence, and network events over time. Authorized analysts can investigate and coordinate response from a central console.

Mobile security and MDM

May report risky apps, unsafe networks, jailbreak or rooting status, missing encryption, configuration drift, device compliance, or loss of management contact.

Device log sources and the evidence they provide
SourceWhat it can showLimitation
System logsStartup, shutdown, driver, service, security-control, hardware, and operating-system events.Volume is high, retention may be short, and attackers may try to clear or alter local logs.
Authentication logsLogin success and failure, MFA, account lockout, new device, privilege, session, and recovery activity.A stolen valid account can appear normal without device, location, or behavioral context.
Application logsApp errors, updates, plug-in changes, file access, administration, cloud activity, and security events.Detail varies by product and logging configuration.
Firewall and network recordsConnections, destinations, ports, traffic volume, allow or deny decisions, and unexpected remote access.Encrypted content may remain hidden; permitted traffic can still be harmful.
Device-management reportsInventory, compliance, encryption, patch level, configuration changes, installed apps, and remote actions.An offline or unmanaged device may stop reporting, creating a visibility gap.
User reportsPop-ups, unusual behavior, sensor indicators, physical changes, suspicious messages, and timing context tools may miss.Memory and interpretation can be imperfect; preserve screenshots or exact wording when safe and permitted.

Signature, behavior, and anomaly detection

Signature-based

Matches known patterns

Compares files or events with known malicious hashes, rules, byte patterns, domains, or behaviors. It can be precise for known threats but may miss new or modified activity.

Behavior-based

Examines what activity does

Looks for actions such as mass file changes, security-tool interference, credential access, persistence, or suspicious process relationships. Legitimate administration may resemble these behaviors.

Anomaly-based

Compares with expected activity

Flags meaningful deviations from a baseline for a user, device, app, or organization. It can find unfamiliar threats but requires tuning as normal behavior changes.

Detection outcomes including false positives and false negatives
OutcomeMeaningWhy investigation matters
True positiveA tool alerts and harmful activity is genuinely present.Determine scope, impact, persistence, related systems, and safe containment.
False positiveLegitimate activity is incorrectly flagged as harmful.Document the context and tune carefully without creating a blind spot.
True negativeNormal activity occurs and no alert is produced.Continue monitoring and periodically verify that controls still provide coverage.
False negativeHarmful activity occurs without a useful alert.Learn from the gap and improve telemetry, rules, tools, baselines, or response processes.

Alert priority: confidence × likely impact × asset importance × urgency. Correlated evidence and critical data can raise priority even when one alert is uncertain.

Safe response to a suspected device

Follow the organization’s incident-response plan. Individual users should usually document and report; trained, authorized responders decide how to isolate, scan, preserve evidence, eradicate the cause, and recover.

  1. Pause and observeStop sensitive work. Do not open suspicious items or enter more credentials. Note exactly what is visible and when it began.
  2. DocumentRecord device identity, time, alert ID, symptoms, recent changes, messages, and actions already taken. Preserve original evidence and provenance.
  3. ReportUse a known school, workplace, vendor, or service-provider channel. Share facts, not accusations, and treat incident details as sensitive.
  4. Contain safelyIf the response plan or authorized support instructs it, isolate network access or the device. Coordinate first because abrupt shutdown can destroy volatile evidence.
  5. Investigate and recoverAuthorized experts scan, correlate logs, identify scope, remove persistence, rebuild or restore from known-good sources, patch, reset affected credentials, monitor, and document lessons.

Why not keep using the device?

Continued login, banking, messaging, or file work may expose more credentials and data, alter timestamps, trigger spreading, overwrite evidence, or synchronize damaged files. Use a separate known-good channel to report.

Why not delete suspicious files?

Deletion may remove evidence without removing hidden persistence, related accounts, or other compromised components. Unapproved “cleaner” tools can cause additional damage or produce misleading results.

Backups support recovery—not diagnosis

Protected, versioned, tested backups can restore data after ransomware or destructive malware. Responders must choose a known-good recovery point and correct the cause before reconnecting restored systems.

Professional support matters

School IT, workplace security teams, managed providers, vendors, qualified repair services, and incident responders have authorized tools, logs, clean media, evidence procedures, and escalation contacts that ordinary users may not.

Detection decisions in the real world

Personal computer

Files gain unfamiliar extensions and a ransom note appears. The user stops using the computer, avoids reconnecting backup drives, photographs the screen with another device if safe, and contacts trusted support.

School Chromebook

A new extension changes search results and requests broad permissions. The student does not remove management or investigate classmates; they record the extension name and report through school IT.

Workplace server

EDR reports a new service, unusual process relationship, and outbound connection while authentication logs show an unfamiliar administrator session. Analysts correlate evidence and follow the incident plan.

Mobile phone

The microphone indicator appears unexpectedly while battery and data use spike. The user stops sensitive activity, records timing and app context, checks through a known-good account channel, and requests authorized mobile support.

IoT camera

Management reports a firmware change and the camera contacts a new destination. The owner verifies whether an approved update occurred and asks authorized support to review device, router, and cloud logs.

Shared lesson

Strong conclusions come from multiple sources: user observation, device baseline, logs, endpoint alerts, identity events, network evidence, inventory, and approved change records.

Watch: spotting endpoint compromise

As you watch, identify one symptom, one corroborating data source, and one response action that requires authorization.

Interactive knowledge check

Clue Crew

Choose the strongest defensive answer. The quiz runs in your browser and collects no personal information.

What the quiz covers

Vulnerabilities, attacks, alerts, IOCs, performance and configuration signs, malware and ransomware clues, endpoint tools and logs, detection methods, false results, evidence preservation, reporting, isolation, and recovery.

How scoring works

There are 10 questions worth one point each. Answer every question, select Check my answers, read each explanation, and restart for another attempt.

Choose the strongest answer

0 of 10 answered

1. Which example is a security alert?
2. Which pattern most strongly suggests possible compromise?
3. Which observation is most characteristic of ransomware?
4. What is a core purpose of endpoint detection and response?
5. What is a limitation of signature-based detection?
6. What is a false positive?
7. What should a student do first after seeing a serious warning on a school device?
8. Why should isolation or shutdown be coordinated?
9. Which statement about backups during recovery is strongest?
10. A phone shows unexpected microphone access, a new login, and unusual data use. What is the best conclusion?

AP® Cybersecurity study support

Baseline

A record of expected device behavior used for comparison.

Telemetry

Measurements and events collected from devices, applications, identities, and networks.

Persistence

A mechanism that helps unwanted access or code survive restarts or account changes.

Quarantine

Controlled isolation of a suspicious file or item by an approved security tool.

Provenance

Information about where evidence came from and how it was handled.

Known-good

A trusted state, image, configuration, or backup verified for recovery use.

Exam reasoning pattern

Name the observation, compare it with the baseline, identify another evidence source, consider a benign cause, assess impact and confidence, then choose an authorized response that preserves evidence.

Continue studying

Explore RevisionTown computer science resources, connect suspicious encrypted or protected data with the cryptography guide, or plan spaced practice with the AP® self-study guide.

Frequently asked questions

1. What is device attack detection?

It is the collection and analysis of user observations, device behavior, security alerts, files, accounts, logs, management data, and network activity to identify possible attacks or compromise.

2. Does a slow or hot device prove it has malware?

No. Heavy applications, updates, poor ventilation, aging batteries, hardware faults, and malware can produce similar symptoms. Context and corroborating evidence are needed.

3. What is an indicator of compromise?

An IOC is an observable artifact or event that may be associated with compromise, such as a known-malicious file hash, unauthorized account, disabled control, or threat-linked destination.

4. What is the difference between antivirus and EDR?

Antivirus and antimalware primarily prevent, scan, detect, and quarantine threats. EDR adds broader endpoint telemetry, correlation, investigation context, and authorized response capabilities.

5. What is a false positive?

It occurs when legitimate activity is incorrectly classified as suspicious. Analysts validate context and tune detection carefully without hiding real threats.

6. What is a false negative?

It occurs when harmful activity receives no useful alert. Layered tools, logging, user reports, threat hunting, testing, and lessons learned help reduce detection gaps.

7. Why should suspicious files not be deleted immediately?

Deletion may destroy evidence while leaving hidden persistence, stolen accounts, related malware, or other compromised devices untouched. Follow the incident-response process.

8. Should a suspected device always be powered off?

Not automatically. Shutdown may stop activity but can destroy volatile evidence. Follow authorized guidance that balances safety, containment, operations, and evidence needs.

9. Can backups remove malware?

Backups provide recovery data, not diagnosis. Responders must correct the cause, choose a known-good recovery point, restore cleanly, verify controls, and monitor for recurrence.

10. Who should investigate a suspected school or workplace device?

Authorized IT, security, incident-response, vendor, or professional technical staff should investigate using approved tools and procedures. Users should document and report observable facts.

Trusted references

AP® is a trademark registered by the College Board, which is not affiliated with and does not endorse this page. This lesson provides defensive cybersecurity education. Device isolation, scanning, evidence collection, account changes, malware handling, restoration, and investigation must be authorized and follow applicable incident-response plans, privacy requirements, retention rules, and law.

Shares: