Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for T1548.006.
Upgrade to ProDetect TCC Manipulation in CrowdStrike LogScale
This detection identifies adversary attempts to manipulate macOS Transparency, Consent, and Control (TCC) protections — either by directly modifying the TCC SQLite database to grant unauthorized permissions, by injecting into TCC-privileged applications such as Finder to inherit Full Disk Access, by abusing environment variables to load a rogue TCC database, or by exploiting SIP-disabled systems where TCC protections are bypassed entirely. Successful TCC abuse grants attackers access to protected resources including the camera, microphone, screen recording, Full Disk Access, and sensitive user directories without user prompts.
MITRE ATT&CK
- Technique
- T1548 Abuse Elevation Control Mechanism
- Sub-technique
- T1548.006 TCC Manipulation
- Canonical reference
- https://attack.mitre.org/techniques/T1548/006/
LogScale Detection Query
// TCC Database Manipulation — CrowdStrike Falcon LogScale
#event_simpleName in (ProcessRollup2, SyntheticProcessRollup2, WriteProcessMemory)
| ImageFileName = /\/(sqlite3|python3?|ruby|perl|bash|sh|zsh|osascript)$/i
| CommandLine = /TCC\.db|INSERT INTO access|UPDATE access.*TCC|SQLITE_TMPDIR|HOME_TCC_DB/i
| table([_time, ComputerName, UserName, ImageFileName, CommandLine, ParentBaseFileName, TargetProcessId, ContextProcessId])
| rename(field=ComputerName, as="host")
| rename(field=UserName, as="user")
| rename(field=ParentBaseFileName, as="parent_process")
| eval detection_type = case(
CommandLine = /sqlite3.*TCC\.db/i, "SQLite TCC Injection",
CommandLine = /SQLITE_TMPDIR|HOME_TCC_DB/i, "Rogue TCC DB Env Abuse",
CommandLine = /INSERT INTO access|UPDATE access/i, "TCC Permission Insert",
true(), "TCC Anomaly"
)
| groupBy([host, user, parent_process, ImageFileName, detection_type], function=[
count(as=event_count),
min(_time, as=first_seen),
max(_time, as=last_seen),
collect(CommandLine, limit=10, as=commands)
])
| sort(last_seen, order=desc)
union
// Finder spawning scripting engines (TCC inheritance)
#event_simpleName=ProcessRollup2
| ParentBaseFileName = /Finder/i
| ImageFileName = /\/(osascript|bash|sh|zsh|python3?|ruby|perl)$/i
| table([_time, ComputerName, UserName, ImageFileName, CommandLine, ParentBaseFileName])
| eval detection_type = "Finder TCC Inheritance"
| groupBy([ComputerName, UserName, ImageFileName, ParentBaseFileName, detection_type], function=[
count(as=event_count),
collect(CommandLine, limit=10, as=commands)
]) Detects TCC manipulation via CrowdStrike Falcon by hunting for interpreter processes with TCC.db-related arguments, environment variable injection, and Finder-spawned scripting engines that would inherit Full Disk Access.
Data Sources
Required Tables
False Positives & Tuning
- Security tooling that audits TCC.db contents for compliance reporting without modifying it
- MDM agents spawned in the Finder context during user session setup for legitimate policy configuration
- Developer test harnesses that automate macOS UI flows using osascript under Finder
Other platforms for T1548.006
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Direct SQLite Injection into System TCC Database
Expected signal: DeviceFileEvents with ActionType=FileModified on /Library/Application Support/com.apple.TCC/TCC.db, initiating process sqlite3. macOS Unified Log entries from com.apple.TCC subsystem recording database modification.
- Test 2Rogue TCC Database via Environment Variable
Expected signal: Process launch event for osascript with SQLITE_TMPDIR environment variable set to non-standard path. File creation events in /tmp/tcc_test/com.apple.TCC/. sqlite3 process execution with TCC.db path argument.
- Test 3Finder TCC Inheritance via AppleScript
Expected signal: Process launch event showing osascript spawned as child of Finder process. Subsequent shell command execution accessing ~/Library/Messages/ which is normally TCC-protected. File creation event at /tmp/tcc_finder_test.txt.
Unlock playbooks & atomic tests with Pro
Get the full detection package for T1548.006 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month