Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for T1548.006.

Upgrade to Pro
T1548.006 IBM QRadar · QRadar

Detect TCC Manipulation in IBM QRadar

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

Tactic
Defense Evasion Privilege Escalation
Technique
T1548 Abuse Elevation Control Mechanism
Sub-technique
T1548.006 TCC Manipulation
Canonical reference
https://attack.mitre.org/techniques/T1548/006/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS event_time,
  sourceip,
  username,
  "process_name",
  "parent_process",
  "cmdline",
  "file_path",
  CATEGORYNAME(category) AS category_name,
  LOGSOURCENAME(logsourceid) AS log_source
FROM events
WHERE
  LOGSOURCETYPEID IN (457, 352, 380)
  AND (
    ("cmdline" ILIKE '%sqlite3%TCC.db%')
    OR ("cmdline" ILIKE '%INSERT INTO access%')
    OR ("cmdline" ILIKE '%UPDATE access%TCC%')
    OR ("cmdline" ILIKE '%SQLITE_TMPDIR%')
    OR ("cmdline" ILIKE '%HOME_TCC_DB%')
    OR (
      "parent_process" ILIKE '%Finder%'
      AND "process_name" IN ('osascript', 'bash', 'sh', 'zsh', 'python3', 'ruby', 'perl')
    )
    OR (
      "file_path" ILIKE '%com.apple.TCC/TCC.db%'
      AND "process_name" NOT IN ('tccd', 'syspolicyd', 'mdmclient')
    )
  )
  AND starttime > (NOW() - 10080 MINUTES)
ORDER BY starttime DESC
LIMIT 1000
high severity low confidence

Identifies macOS TCC manipulation events including direct SQLite database modification, environment variable injection for rogue TCC database loading, and Finder-based TCC inheritance attacks via QRadar log source types for macOS EDR and syslog.

Data Sources

QRadar macOS DSMSyslog DSMmacOS EDR integration

Required Tables

events

False Positives & Tuning

  • MDM agents writing TCC privacy preference policies during device enrollment or policy refresh cycles
  • macOS system processes performing TCC database maintenance during OS updates
  • Automator and Shortcuts workflows executed via Finder that legitimately invoke scripting interpreters

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.

  1. 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.

  2. 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.

  3. 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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections