Skip to main content

Wolfcore Cyber Security

Event ID 4698: A Scheduled Task Was Created Explained

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 20 November 2026.

In one sentence: Event 4698 is the Windows log entry that says someone created an automatic job on a computer, and attackers often use such jobs to come back after a restart.

What it is

Windows Task Scheduler runs programs at set times or at start-up. Backup tools, updaters and IT scripts all use it. Microsoft’s documentation says Event 4698 is generated every time a new scheduled task is created. It belongs to the audit subcategory “Audit Other Object Access Events”. You may need to switch it on in your audit policy.

The event holds the Subject account that created the task, the task name and the full Task Content in XML. The XML shows the command to run, the triggers and the account the task will run as.

How it works

  1. A person, installer or attacker creates a task, through the Task Scheduler window, the schtasks command or scripting.
  2. If the audit subcategory is enabled for Success, Windows writes 4698 to the Security log.
  3. The task then runs on its trigger, for example at logon, at start-up or every hour.
  4. Each run can be seen in other logs, such as process creation (Event 4688).

Why attackers use it

MITRE ATT&CK technique T1053.005 says attackers abuse Task Scheduler to run malicious code at start-up or on a schedule, which gives persistence. ATT&CK also says tasks can be used for remote execution during lateral movement, meaning moving from one computer to another, and to run a process as a chosen account such as SYSTEM. The technique page lists many named threat groups that use it.

Who it affects and how badly

  • Sole trader to 10 staff: one infected PC with a hidden task can reinfect itself after clean-up.
  • 10 to 50 staff, recruitment, retail and hospitality: a task on a till or back-office PC can quietly start remote access each morning.
  • 50 to 250 staff, manufacturing, construction and healthcare: tasks pushed to many machines can spread an attack. Worst case is a ransomware launch timed for the weekend.
  • Regulated firms: missing task logs make it hard to show scope of a breach to regulators and insurers.

What we check on a test

  • Whether a standard user, or a service account with too many rights, can create tasks that run as SYSTEM.
  • Whether task folders and the files tasks launch are writable by non-administrators.
  • Whether task creation and command lines are logged and sent off the machine.
  • Whether stored task credentials could be reached by an administrator account an attacker has taken over.

How to detect it

Microsoft recommends monitoring all scheduled task creation, especially on critical computers. Its specific points:

  • Tasks created in the root of the Task Scheduler Library, where the Task Name looks like \TASK_NAME, are often made by hand or by malware.
  • If the Task Content XML contains <LogonType>Password</LogonType>, raise an alert. Microsoft explains the account password is then saved in Credential Manager in cleartext form and can be extracted with administrative privileges.

Also read the Command in the XML. Check the Subject account against who should be creating tasks, and compare the time with approved changes.

Task createdwith schtasksor WMI→Event 4698logged→Task runs atstartup or timer→Review taskname, command,account

How to fix or prevent it

  1. Enable “Audit Other Object Access Events” (Success) under Advanced Audit Policy Configuration.
  2. Send the Security log to a central, protected log store.
  3. Alert on root-level task names and on the Password logon type, as Microsoft advises.
  4. Remove administrator rights from everyday accounts so tasks cannot run as SYSTEM.
  5. Use Group Policy or your management tool to control approved tasks, and review the list monthly.
  6. Combine with process creation logging (Event 4688) so you can see what a task actually ran.

Attackers often get onto a machine through a phishing email first. You can test how your staff handle one with Phishy phishing simulation software, and begin with the free trial.

Services are the other common persistence route: see the Event ID 4697 entry and windows event id 7045 service installed.

Illustration: worked example

A 15-person recruitment agency finds a PC slow. IT removes a malicious program but not the task that reinstalls it every night. A week later it is back. With 4698 logging, the root-level task name and its command would have shown in the log the day it was created, and cleaning it up would have ended the problem.

FAQ

Which log holds Event 4698? The Security log, under the Audit Other Object Access Events subcategory.

Why does the Password logon type matter? Microsoft says the account password is then saved in cleartext form in Credential Manager and can be extracted with administrative privileges.

Is every new task suspicious? No. Software updaters create tasks, so compare against approved changes.

Related terms

windows event id 4688 process creation, windows event id 7045 service installed, windows event id 4720 user account created, windows event id 4672 special privileges assigned, indicators of compromise, how privilege escalation works

More in the Detection and response hub.

Sources opened for this entry

See also: Windows Event ID 4719: Audit Policy Changed, What It Means.

How Wolfcore helps

Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over. See SOC and SIEM monitoring

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call