Module 9 Flashcards

(18 cards)

1
Q

What is the primary purpose of adding a round of ‘elevated persistence’ after gaining initial privileged access?

A

To ensure that a high level of privilege can be maintained, even if the initial elevation method is patched or detected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

According to the source, what are two specific techniques for achieving elevated persistence on Windows?

A

Scheduled Tasks and Windows Services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why would an adversary use an elevated persistence method if their initial elevation method is considered ‘loud’?

A

To avoid performing the noisy initial elevation method multiple times, which could lead to detection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The Windows Task Scheduler can be used to execute payloads as which high-privilege account to maintain access?

A

SYSTEM (or NT AUTHORITY\SYSTEM).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the provided XML for a scheduled task, what does the <BootTrigger> element define?

A

It specifies that the task will be executed when the computer boots up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Within the scheduled task’s XML, what does the <UserId>NT AUTHORITY\SYSTEM</UserId> tag specify?

A

It sets the user context for the task to run as the SYSTEM account.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In the task’s XML principals, what is the function of the <RunLevel>HighestAvailable</RunLevel> setting?

A

It ensures the task runs with the highest possible privileges available to the specified user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of the <Hidden>true</Hidden> setting within the scheduled task’s XML definition?

A

To hide the task from the normal Task Scheduler user interface, making it harder to discover.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In the scheduled task example, which XML element contains the command to be executed?

A

The <Exec> element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the full path to the executable that the sample scheduled task is configured to run?

A

C:\Windows\System32\beacon_x64.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

An adversary uses the command schtaskscreate \Beacon XML CREATE to create a new task. What does the XML argument signify?

A

It indicates that the task’s configuration is being provided from an XML file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Besides scheduled tasks, an adversary can create a _____ to run a payload under the SYSTEM context when the computer boots.

A

Windows service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What command is used in the example to create a new Windows service named ‘dbgsvc’?

A

sc_create

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In the sc_create command sc_create dbgsvc "Debug Service" C:\Windows\System32\debug_svc.exe ..., what does the binpath parameter specify?

A

It specifies the path to the service’s executable file (C:\Windows\System32\debug_svc.exe).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What command is recommended to verify that a Windows service was created successfully?

A

sc_qc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In the output of sc_qc dbgsvc, what does START_TYPE : 2 AUTO_START indicate?

A

It indicates that the service is configured to start automatically when the operating system boots.

17
Q

The sc_qc output shows SERVICE_START_NAME : LocalSystem. What is this equivalent to?

A

The SYSTEM account (NT AUTHORITY\SYSTEM).

18
Q

In the sc_qc output for dbgsvc, what does ERROR_CONTROL : 0 IGNORE mean?

A

It means if the service fails to start, the startup process will not be notified and will continue without logging an error.