🖥️
Windows DFIR
  • Introduction
  • Windows Artifacts
    • Windows Quick Tips
      • Windows Command Line
      • Workstation File/Folder Locations
      • Server File/Folder Locations
    • Account Usage
      • Authentications SAM Artifacts
        • Last Login
        • Last Failed Login
        • Last Password Change
      • Authentications (Windows Event Log)
        • Logon ID
      • Group Membership
        • Event ID: 4798
        • Event ID: 4799
      • RDP
        • Source System Artifacts - Quick Reference
        • Destination System Artifacts - Quick Reference
      • SSH
      • Rouge Local Accounts
      • CrowdStrike Searches
        • Event Name - UserLogon
        • Event Name - UserLogonFailed
        • Event Name - UserLogonFailed2
        • Event Name - SsoApplicationAccess
    • Browser Usage
      • History & Downloads
        • Viewing History Files - DB Browser
        • Transition Types
      • Auto-Complete Data
      • Bookmarks
      • Browser Preferences
      • Cache
      • Cookies
      • Extensions
      • Super Cookies (HTML5 Web Storage)
      • Media History
      • Private Browsing
      • Session Restore
      • Stored Credentials
      • Suggested/Frequent Sites
      • DB Browser Queries
        • Firefox
        • Chrome
        • Media History
      • PowerShell Scripts
        • Browser Extension Finder
        • Browser History Finder
    • Processes
      • at.exe
      • explorer.exe
      • lsass.exe
      • lsaiso.exe
      • PuTTy.exe
        • X11 Forwarding
      • runtimebroker.exe
      • services.exe
      • smss.exe
      • System
      • svchost.exe
        • Services
      • winlogon.exe
      • wininit.exe
    • Cloud Storage
    • Deleted File or File Knowledge
      • WordWheelQuery (Win 7+)
      • ACMRU (Win XP)
      • Internet Explorer file:///
      • Last Visited MRU
      • Thumbs.db (Win XP)
      • Thumbcache
      • Recycle Bin
      • User Typed Paths
      • Windows Search Database
    • File Download
      • Zone.Identifer
      • Open/Save Most Recently Used (MRU)
      • Email
      • Drive By Downloads
        • Malvertising
      • Web Browsing
        • Cache Files
      • CrowdStrike Searches
        • MoTW
    • Folder/File Opening/Creation
      • Recent Files
      • Office Recent Files
      • Shell Bags
      • .lnk Files
      • Jump Lists
        • AppIDs
      • Prefetch
      • Index.dat file://
      • PowerShell Scripts
        • .lnk Files
    • Persistence
      • Registry
        • NTUSER.DAT & HKU\SID
        • Run and Run Once
        • Shell Folders and UserInit Key
        • Services
        • Logon Scripts
        • Office Add-ins
        • Winlogon Shell
        • Image File Execution Options (IFEO)
        • AppInit_DLLs
        • Scheduled Tasks
      • Scheduled Tasks
        • Scheduled Task Destination System Artifacts
        • Scheduled Task Source System Artifacts
      • Startup
      • Tool: AutoRuns
      • Accounts
      • WMI Event Consumers
        • WMI: Source System Artifacts
        • WMI: Destination System Artifacts
        • WMI: PowerShell Analysis
      • PowerShell Scripts
        • Startup Programs
      • CrowdStrike Searches
        • Files Written to Startup Folder
        • Files Written to Startup Folder from the Internet
        • Local Account Creation/Deletion
        • Azure Account Creation/Deletion
        • Scheduled Tasks
    • Physical Location
      • Time zone
      • Wireless SSID
      • Network History (Vista/Win7–11)
      • Cookies
      • Browser Search Terms
    • Program Execution
      • Prefetch
        • Decoding Prefetch Files with Eric Zimmerman's PECmd Tool
      • BAM/DAM
      • CapabilityAccessManager
      • UserAssist
      • Last Visited MRU
      • RunMRU
      • MUI Cache
      • ShimCache
      • Amcache
      • Jump Lists
    • Shadow Copies
      • VSC Permissions
      • Event ID 8193: Volume Shadow Copy Service Error
    • USB Usage
      • Key Identification
      • Drive Letter and Volume Name
      • Connection Timestamps
      • User
      • Volume Name
      • Plug & Play Event Log
    • Windows Services
      • DoSvc (Delivery Optimization)
    • System Information
    • Event IDs
      • Authentication / Account
        • 4624 - Authentication Success
          • Logon Types
        • 4625 - Authentication Failure
          • SubStatus Codes
        • 4634 - Account Logoff
        • 4648 - Explicit Credentials Success
        • 4672 - Special Privileges
        • 4720 - Account Creation
        • 4722 - Account Enabled
        • 4732 - Addition to Local Group
        • 4738 - Account Changed
        • 4776 - Kerberos Authentication Attempt
          • Substatus Codes
        • 4771 - Kerberos Failure
        • 4768
      • File System
        • 1006
        • 4688 - Process Created
        • 4663
        • 4656
        • 6416
        • 20001
        • 20003
  • Windows DFIR & MITTR
    • Initial Access
      • Content Injection
      • Drive-by Compromise
        • Watering Hole Attack
        • Microsoft Files (Payload Execution)
        • Exploit Delivery
        • Viewing Browser History Files
      • Phishing
    • Execution
    • Persistence
    • Privilege Escalation
    • Defense Evasion
    • Credential Access
      • Logon ID
    • Discovery
    • Lateral Movement
    • Collection
    • Command and Control
    • Exfiltration
    • Impact
  • SOC Related
    • Cached Credentials
    • Domain Controller Password Spraying
Powered by GitBook
On this page
  • Overview
  • Event Log:
  • Registry:
  • Prefetch:
  • Deeper Dive
  • Analyzing The Artifact
  • Tools for Analysis

Was this helpful?

  1. Windows Artifacts
  2. Persistence
  3. Scheduled Tasks

Scheduled Task Destination System Artifacts

PreviousScheduled TasksNextScheduled Task Source System Artifacts

Last updated 1 year ago

Was this helpful?

Scheduled Task Destination System Artifacts Quick Reference

security.evtx:

    • Logon Type 3

    • Source IP/Logon Username

    • Logon User Name

    • Logon by user with administrative rights

    • Requirement for accessing default shares such as C$ and ADMIN$

    • NTLM if authenticating to Local System

    • Source Host Name/Logon User Name

    • Scheduled task created

    • Scheduled task updated

    • Scheduled task deleted

  • Event ID /

    • Scheduled task enabled/disabled

SOFTWARE

  • Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks

  • Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\

    • evil.exe

    • evil.exe

  • File Creation

    • Evil.exe

  • Job Files Created

    • C:\Windows\Tasks

  • XML Task Files created in

    • C:\Windows\System32\Tasks

      • Author tag under "RegistrationInfo" can identify:

        • Source system name

        • Creator username

    • evil.exe-{hash}.pf

Overview

The source system artifacts provide crucial evidence about the use and management of scheduled tasks. These artifacts include:

Event Log:

  • Event ID 4648: Indicates logon with alternate credentials, which can be a sign of privilege escalation or lateral movement attempts.

  • Scheduled Task Events:

    • Event ID 4698: Creation of a new scheduled task.

    • Event ID 4702: Update to an existing scheduled task.

    • Event ID 4699: Deletion of a scheduled task.

    • Event IDs 4700/4701: A scheduled task was enabled or disabled.

Registry:

  • ShimCache: Located at SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache

    • Provides a record of executed applications, including schtasks.exe and at.exe.

  • BAM/DAM: Found under SYSTEM\CurrentControlSet\Services\bam\UserSettings\{SID}, it tracks applications executed by users, useful for identifying execution patterns of task scheduling tools.

  • AmCache.hve: Contains records of programs executed, offering timestamps and file paths, crucial for timeline analysis involving schtasks.exe and at.exe.

Prefetch:

  • Prefetch files, specifically C:\Windows\Prefetch\at.exe-{hash}.pf and C:\Windows\Prefetch\schtasks.exe-{hash}.pf, record the execution of the AT command and Task Scheduler, providing insights into their usage frequency and last execution time.

Deeper Dive

Understanding the implications of these artifacts requires a comprehensive analysis approach:

  • Event Log Analysis: Event logs are foundational for timeline reconstruction and understanding task management actions. They reveal when and how scheduled tasks were manipulated, potentially highlighting unauthorized changes or the setup of malicious tasks.

  • Registry Examination: The ShimCache, BAM/DAM, and AmCache.hve provide a forensic trail of executable runs, which is invaluable for identifying the use of scheduling tools in potentially malicious contexts. Analyzing these registry entries can reveal execution patterns and timelines for critical forensic analysis.

  • Prefetch Files Analysis: Prefetch files for at.exe and schtasks.exe not only confirm the execution of these tools but also provide execution frequency and last execution date, aiding in the identification of suspicious task scheduling activities.

Analyzing The Artifact

  1. Event Log Review: Utilize tools like Event Viewer to scrutinize the Security logs for the specified Event IDs, understanding the context and timing of scheduled task manipulations.

  2. Registry Analysis: Employ forensic tools to explore the mentioned registry paths for evidence of schtasks.exe and at.exe execution. This analysis can uncover usage patterns and potentially link to specific scheduled tasks or malicious activities.

  3. Prefetch Investigation: Analyze the prefetch files for at.exe and schtasks.exe to determine how frequently these tools are used and their last known execution times. This information is critical for establishing a timeline of events and identifying abnormal use patterns.

Tools for Analysis

  • Windows Event Viewer: For accessing and analyzing event logs related to scheduled tasks.

  • Registry Analysis Tools: Tools like Registry Explorer and RECmd can navigate and interpret ShimCache, BAM/DAM, and AmCache.hve entries.

  • Forensic Analysis Suites: Comprehensive forensic suites like Autopsy or X-Ways Forensics can analyze prefetch files, alongside other artifacts, providing a holistic view of system activities.

– SYSTEM

– First Time Executed

– C:\Windows\Prefetch

Event ID 4624
Event ID 4672
Event ID 4776
Event ID 4698
Event ID 4702
Event ID 4699
4700
4701
ShimCache
AmCache.hve
Prefetch