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)
- DET-005Audit Logs as Insider EvidenceSystem and app audit logs record who did what and when.Confidence HighAWSAzureGCP
- DET-013Cached Thumbnails of Seen FilesThe Windows thumbnail cache can show that an image or document existed on the machine.Confidence LowWindows
- DET-019Chrome Extension InventoryExtensions in the profile show added browser powers, some of which can read all pages.Confidence MediumWindowsmacOSLinux
- DET-029Debian Package Install Historydpkg.log shows when software was installed or removed on a Debian or Ubuntu system.Confidence MediumLinux
- DET-038EDR Telemetry for Insider CasesEDR records process, file, and network activity on endpoints and lets responders pull data.Confidence HighWindowsmacOSLinux
- DET-039Employee Activity Monitoring AgentA UAM agent on workstations records user actions for review of insider activity.Confidence MediumWindowsmacOS
- DET-046File Change MonitoringTrack changes to important files and settings with file integrity monitoring to catch tampering, staging and destructive activity.Confidence HighWindowsLinuxmacOS
- DET-070Linux File Access WatchAn auditd watch rule that records reads, writes, and attribute changes on chosen paths.Confidence MediumLinux
- DET-087Network Intrusion AlertsNIDS flags unusual or known-bad traffic patterns that can reveal insider tooling or staging.Confidence LowNetwork
- DET-102PowerShell Script LoggingModule, script block, and transcription logging record what PowerShell ran.Confidence HighWindows
- DET-107Program Run History from PrefetchPrefetch files show which programs ran, how often, and when.Confidence MediumWindows
- DET-113Recently Opened File ShortcutsLNK files in the Recent folder show files a user opened, even after the file is gone.Confidence MediumWindows
- DET-155Sysmon Process Launch RecordsSysmon Event 1 logs each process start with full command line and parent.Confidence HighWindows
- DET-157Taskbar and Start Jump ListsJump Lists record recent and frequent files per application.Confidence LowWindows
- DET-162Unplanned AWS Resource CreationWatch CloudTrail for compute, storage and function creation by people or roles that do not normally provision them.Confidence MediumAWS
- DET-163Unplanned Azure Resource DeploymentTrack Azure Activity Log writes for VMs, storage, key vaults and role assignments made outside managed pipelines.Confidence MediumAzure
- DET-164Unplanned GCP Resource CreationMonitor Admin Activity audit logs for new VMs, buckets, disks and service accounts created outside normal processes.Confidence MediumGCP
- DET-165Unplanned OCI Resource CreationReview Oracle Cloud audit events for new compute, storage, volumes and networks in compartments where they do not belong.Confidence MediumNetwork
- DET-168User Behavior BaselinesUBA compares what a user does now with their own and peers' normal.Confidence MediumWindowsmacOSIdentity
Controls (15)
- CTL-003Allowing Only Approved SoftwareOnly listed programs can run, so staff cannot install their own tools.TechnicalEffort HighEffect High
- CTL-004Application-Aware FirewallsA modern firewall allows or blocks traffic by application and user, not just by port.TechnicalEffort HighEffect Medium
- CTL-030Controlling Browser ExtensionsBlock unapproved extensions that could read sessions or move data.TechnicalEffort MediumEffect High
- CTL-031Controlling Changes to SystemsA formal change process makes every modification approved, recorded and reviewable.ProcessEffort MediumEffect High
- CTL-032Controlling Powerful AccountsPrivileged access tools issue admin rights only when needed, with recording and approval.TechnicalEffort HighEffect High
- CTL-065Listing What Software Is AllowedKeep a managed list of approved software and enforce it.TechnicalEffort MediumEffect Medium
- CTL-067Locking Out the Registry EditorBlocking regedit for standard users removes an easy way to weaken Windows settings.TechnicalEffort LowEffect Low
- CTL-073Needing Two People to Sign OffSensitive actions should require approval from more than one independent person.TechnicalEffort MediumEffect High
- CTL-076Password on Firmware and BootA firmware or bootloader password stops people from booting other systems or changing low-level settings.TechnicalEffort MediumEffect Medium
- CTL-083Regular Checks on Who Has AccessPeriodic access reviews find permissions that are too wide or no longer needed.ProcessEffort MediumEffect High
- CTL-091Running Malware Scanning on EndpointsEndpoint antivirus catches known malicious files and can quarantine them automatically.TechnicalEffort LowEffect Medium
- CTL-103Tightening File and Folder PermissionsRestrict who can open which files on file servers and collaboration platforms.TechnicalEffort MediumEffect High
- CTL-106Trimming Admin RightsGive people only the access their job needs and check it on a schedule.TechnicalEffort MediumEffect High
- CTL-112Using Company-Managed BrowsersA managed browser lets IT apply policy to what staff can do on the web.TechnicalEffort MediumEffect Medium
- CTL-116Written Rules for Using Company SystemsA clear acceptable use policy sets expectations, removes excuses and gives you a basis for discipline.ProcessEffort LowEffect Medium