Lección 4 de 4 · 8 min
After the break-in: privilege escalation, persistence and how defenders spot them
What attackers try to do once they have a foothold, why privilege escalation and persistence matter so much, and where defenders look for them on a Mac.
Por ahora esta página está en inglés.
Getting in is rarely the attacker’s real goal. A first foothold, a phished account or one compromised app, usually has limited rights and can be lost at the next restart or password change. What follows is called post-exploitation: gaining more power, staying in place and moving towards the real objective. For defenders, this phase is also the best opportunity: attackers have to change things, and changes can be seen.
Privilege escalation
Privilege escalation means going from limited rights to higher ones, for example from a normal user to an administrator, or from an app’s sandbox to the wider system. MITRE ATT&CK lists privilege escalation as a tactic of its own, with techniques such as abusing mechanisms meant to elevate privileges, exploiting vulnerable software that runs with high rights, or reusing an administrator’s credentials found on the machine.
The defenses are mostly old-fashioned discipline: daily work on a standard account rather than an administrator account, prompt updates (many escalations exploit known, already-patched flaws), no passwords stored in plain text, and as few administrator accounts as possible. On macOS, System Integrity Protection means that even an administrator cannot modify protected system files, which removes a classic escalation target.
Persistence
Persistence means surviving a restart, a logout or a password change. MITRE ATT&CK’s persistence tactic catalogues dozens of ways to do it. On macOS, the most common are well documented: launch agents and launch daemons (configuration files that tell the system to start a program automatically), login items, and scheduled tasks. Because these mechanisms are legitimate and widely used by normal software, they are ideal hiding places.
| Persistence location on macOS | What it does | How to review it |
|---|---|---|
| Login items | Opens an app when you log in | System Settings, General, Login Items & Extensions |
| Launch agents (per user) | Starts a background program for a user session | Listed as background items in the same settings pane |
| Launch daemons (system-wide) | Starts a background program at boot, often with high rights | Listed as background items; installing one requires administrator approval |
| Scheduled tasks | Runs a program at set times | Less common on modern macOS; security tools and audits check them |
Modern macOS notifies you when an app adds a background item, and lists them in one place. Anything you do not recognise, especially with a vague or misspelled name, deserves a closer look. The blog article on persistence hunting walks through these locations in more detail.
Lateral movement and exfiltration
With higher rights and a stable foothold, attackers move to other machines (lateral movement) and gather what they came for, then send it out (exfiltration). Both need the network. That is why defenders watch for unusual internal connections, new outgoing destinations and large, unexpected uploads, and why network visibility remains valuable even when an attacker controls a single machine well.
How defenders detect post-exploitation
- Alerts on new administrator accounts and on changes to security settings.
- Alerts on new persistence items, cross-checked against software the organisation actually deploys.
- Monitoring for processes running with unexpected privileges.
- Network monitoring for new destinations, unusual volumes and connections at odd hours.
- Mapping detections to MITRE ATT&CK to see which techniques you would catch and which you would miss.
Where FireAI fits
FireAI is not an antivirus and does not scan files or inspect persistence items. What it does is the network side of this picture on a Mac: it asks before a new or modified program connects, shows every app’s destinations on the world map, and its risk score counts factors such as a program’s first connection or unusual timing. A persistence item that phones home is exactly the kind of new, unexplained connection it surfaces, and in Paranoid mode unsigned apps are blocked outright.
Lo esencial
- Post-exploitation is about more power (privilege escalation), staying in place (persistence) and reaching the goal.
- Standard accounts, prompt updates and few administrators block most escalation.
- On macOS, persistence usually lives in login items, launch agents and launch daemons; review them in System Settings.
- Lateral movement and exfiltration need the network, where defenders can still see them.
Ponte a prueba
1. What is privilege escalation?
- Buying a more expensive licence
- Gaining higher rights than the ones an attacker initially has, for example becoming administrator — Correcto.
- Changing the screen resolution
- Encrypting a disk
Attackers seek higher privileges to reach protected data and disable defenses.
2. Which macOS mechanism is commonly abused for persistence?
- Launch agents and launch daemons — Correcto.
- The Dock
- The screensaver
- Spotlight search
They start programs automatically, which is exactly what an attacker needs to survive restarts.
3. Why does network monitoring stay useful after an attacker controls a machine?
- Attackers never use the network
- Lateral movement and exfiltration need network connections, which can be observed — Correcto.
- It deletes the attacker’s files
- It speeds up the computer
To move or send data out, the attacker must create traffic that defenders can see.
Ponlo en práctica con FireAI
Pon esta lección en práctica en tu propia computadora.
- Rules: app, website, domain, IP or a range, forever or until you restart — Write a rule as precise as one address or as broad as an entire domain.
- The World map — See where your data actually goes, not just a hostname you’d have to look up yourself.
- Find apps with known security flaws — Close known holes before anyone uses them: update the one app that needs it.
- Security modes: Home, Coffee shop, Paranoid, Under attack — Match FireAI’s strictness to where your Mac actually is, in one tap.
- Investigate a connection — Decide with the facts in front of you, not a vague warning.
Fuentes
- MITRE ATT&CK: Privilege Escalation (TA0004)
- MITRE ATT&CK: Persistence (TA0003)
- MITRE ATT&CK T1543.001: Launch Agent
- MITRE ATT&CK T1543.004: Launch Daemon
- MITRE ATT&CK T1548: Abuse Elevation Control Mechanism
- Apple Support: Change Login Items & Extensions settings on Mac
- Apple Platform Security: System security overview
Ponlo en práctica en tu Mac
Prueba todas las funciones gratis durante 17 días, sin tarjeta.