TAM-H-STG-025 · Human · Stage: Getting ready

Leaving Something Behind

The insider sets up a mechanism that keeps their access or code running after reboots, logoffs or even their departure.

Persistence means a way back in. The person adds something that restarts on its own, such as a scheduled task, service, startup entry, extension, key or web shell. It keeps working when the machine reboots or their account is disabled.

The change can be new, or a quiet edit to a legitimate component. It may serve the person, or another party who takes over later.

Hunt on configuration changes: what was added, by whom, from which session and whether it matches a change ticket. Baseline autoruns, scheduled jobs, services and trusted keys, then diff regularly. Be especially careful about changes made near the end of employment.

What it looks like

  • A sysadmin adds an SSH key to root's authorized keys on production hosts.
  • A developer creates a scheduled task that runs a script every night with a hidden job.
  • An employee installs a browser extension that stays active across accounts.

Variants (10)

TAM-H-STG-025.1Adding an SSH Key+

The insider adds or changes authorized keys or trust settings to keep remote access.

A key placed on a server, VM or network device gives a login with no password. Monitor changes to authorized_keys and map each key to a known owner. Compare key fingerprints against an approved list, and note the account and time of each edit. Keys added at the end of employment need fast review.

TAM-H-STG-025.2Creating a Background Service+

The insider installs a service, daemon or launch agent that runs automatically.

Services start at boot and run with high privilege. Watch for new services, launch daemons and unusual binary paths, and compare with software inventory. Inspect the service binary path, the account used and its start type. Services pointing at user folders or temporary paths are suspicious.

TAM-H-STG-025.3Dropping a Web Shell+

The insider places or edits a script on a web server that allows remote command execution.

Web shells hide among normal site files. Look for new or modified files in web roots, odd parent processes spawned by web servers and requests with command-like parameters. File integrity monitoring on web roots is the best control. Check access logs for requests to newly created files and long, encoded parameters.

TAM-H-STG-025.4Hooking Startup or Logon+

The insider edits startup folders, autorun keys or login items so code runs at boot or sign-in.

Many locations load programs at startup. Baseline autoruns and alert on additions, especially from user-writable paths. Autoruns tools, EDR registry events and startup folder file creation events show these edits. Compare them against what normal software installs add. Check the account that made each edit and whether the target path is writable by ordinary users.

TAM-H-STG-025.5Modifying Server Components+

The insider installs or changes a server module, stored procedure, transport agent or similar extension to keep access.

Examples include SQL stored procedures and mail transport agents. Web shells are covered separately. Diff server component lists and check for items with no change record. Check hashes and signing of server modules, and who changed them. Changes to mail transport or database extension lists need a ticket.

TAM-H-STG-025.6Rigging Office Startup+

The insider modifies an Office template, add-in, macro or Outlook rule so code runs when Office starts.

These hooks run in a trusted app and fly under the radar. Check for new add-ins, modified templates, mail rules that run applications and macros in startup folders. Check Outlook rules that start programs, add-ins loaded from user folders and templates changed outside patching. Compare against managed Office settings.

TAM-H-STG-025.7Scheduling a Hidden Job+

The insider creates a task, cron job or timer that runs code later or on repeat.

Scheduled execution survives reboots and needs no login. Review new schtasks, crontab and systemd timer entries for unknown creators, odd commands and times. Check who created the task, the account it runs as, the command line it calls and whether it matches any change ticket or software on the host.

TAM-H-STG-025.8Setting an Event Trigger+

The insider creates a subscription or hook that runs code when a condition occurs.

WMI event subscriptions and similar triggers can be invisible to casual checks. Enumerate subscriptions and compare to known-good baselines. Also review WMI repository events, hook configuration and other trigger stores on the host. Few legitimate tools use them, so unknown entries stand out.

TAM-H-STG-025.9Slipping In an Extension+

The insider installs or alters a browser, IDE or app extension that runs unauthorized code.

Extensions run with the host app's permissions. Review installed extensions across the fleet and watch for sideloaded or modified ones. Enterprise extension management and IDE plugin lists show what is installed. Sideloaded packages or edits to existing extensions are the strongest signs.

TAM-H-STG-025.10Tampering With Boot or Firmware+

The insider modifies boot loaders, firmware or boot settings so control survives reinstalls.

This is rare but very durable. Check boot integrity, secure boot state, firmware versions and unexpected changes to boot configuration. Firmware logs, measured boot values and secure boot status give evidence. Physical access to the device or hardware management interfaces is often needed.

Detections (19)

Controls (15)