Module 12 Flashcards

(50 cards)

1
Q

What is the primary goal of the ‘Discovery’ tactic [TA0007] in an adversarial attack?

A

An adversary attempts to enumerate information about the environment they are operating in.

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

Why is ‘Discovery’ often considered a prerequisite step to Lateral Movement?

A

Adversaries need to know what systems and resources an impersonated user can access before they can move to other systems.

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

What protocol do most domain enumeration tools leverage to query Active Directory?

A

LDAP (Lightweight Directory Access Protocol) or LDAPS (LDAP over SSL).

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

What is ADWS, and how does it relate to LDAP?

A

Active Directory Web Services (ADWS) is a protocol that wraps LDAP queries in HTTP requests.

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

Why is running a default BloodHound collector like SharpHound considered risky when emulating an advanced threat?

A

Many security vendors have signatured the hardcoded queries, session enumeration traffic, and inefficient data retrieval methods used by default collectors.

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

What is a stealthier alternative to using default BloodHound collectors for data gathering?

A

Perform data collection using custom LDAP queries with a tool like ldapsearch and then parse the output for BloodHound.

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

The Python script _____ is used to parse the output of tools like ldapsearch into BloodHound-compatible JSON files.

A

BOFHound

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

What is the standard TCP port for unencrypted LDAP communication?

A

TCP port 389.

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

What is the standard TCP port for LDAPS (LDAP over SSL)?

A

TCP port 636.

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

In LDAP, what does the ‘objectClass’ attribute define for an object?

A

It defines the types of attributes the object can have.

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

What is a potential issue when searching for LDAP objects with an objectClass of ‘user’ or ‘person’?

A

The search will also return computer accounts, as they share these object classes.

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

What is the purpose of an LDAP filter?

A

An LDAP filter defines the criteria for a search to find specific objects in the directory.

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

What sAMAccountType value corresponds to a standard user account in Active Directory?

A

The decimal value 805306368.

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

In an LDAP filter, what character represents the logical ‘AND’ operator?

A

The ampersand character (&).

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

In an LDAP filter, what character represents the logical ‘OR’ operator?

A

The pipe character (|).

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

In an LDAP filter, what character represents the logical ‘NOT’ operator?

A

The exclamation mark (!).

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

What is the correct syntax placement for logical operators (&, |, !) within an LDAP filter group?

A

The logical operator must always appear at the beginning of the grouping (prefix notation).

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

What LDAP filter would find all user accounts (sAMAccountType=805306368) that also have their adminCount attribute set to 1?

A

(&(samAccountType=805306368)(adminCount=1))

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

How can you limit the attributes returned by an ldapsearch query?

A

Use the --attributes parameter followed by a comma-separated list of attribute names.

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

Which attribute must be included in an ldapsearch query to identify ACL-based attack paths in BloodHound?

A

ntsecuritydescriptor

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

What is the LDAP OID for the bitwise AND matching rule (LDAP_MATCHING_RULE_BIT_AND)?

A

1.2.840.113556.1.4.803

22
Q

The bitwise AND filter is particularly useful for querying which specific Active Directory attribute that consists of bitwise flags?

A

userAccountControl

23
Q

What LDAP filter would find computer accounts (sAMAccountType=805306369) configured for unconstrained delegation (a userAccountControl flag of 524288)?

A

(&(samAccountType=805306369)(userAccountControl:1.2.840.113556.1.4.803:=524288))

24
Q

What is the LDAP OID for the matching rule LDAP_MATCHING_RULE_IN_CHAIN?

A

1.2.840.113556.1.4.1941

25
What is the primary use case for the `LDAP_MATCHING_RULE_IN_CHAIN` OID in Active Directory enumeration?
It is used to query the ancestry of an object, which is useful for unrolling nested group memberships.
26
What LDAP filter would recursively find all members of the 'Domain Admins' group, including members of nested groups?
"(memberof:1.2.840.113556.1.4.1941:=CN=Domain Admins,CN=Users,DC=contoso,DC=com)"
27
What OPSEC risk is associated with the 'Expensive Search Results Threshold' for LDAP queries?
This threshold is triggered by queries that return more results than a configured limit, such as a query for `(objectClass=*)`.
28
What are the two main factors that contribute to a long LDAP query time, potentially triggering the 'Search Time Threshold'?
The size of the result set and the number of attributes being returned for each object.
29
Requesting which two attributes together in `ldapsearch` will result in the slowest query time for a given filter?
All attributes and the security descriptor (`*,ntsecuritydescriptor`).
30
When does an LDAP query trigger the 'Inefficient Search Results Threshold'?
When a query visits a large number of directory objects but returns less than 10% of them as results.
31
Why might a targeted query for kerberoastable users be considered 'inefficient' from a detection standpoint?
It visits every user account but may only return a small percentage of them if few have an SPN set.
32
What type of program is BOFHound?
It is a Python script designed to parse the raw output from tools like the `ldapsearch` BOF.
33
What is the recommended query methodology when using `ldapsearch` and BOFHound to avoid detection?
Use small, efficient queries to build up a picture of the environment over several days or weeks.
34
After running `bofhound` on Cobalt Strike logs, what is the next step to visualize the data?
Upload the generated JSON files to the BloodHound UI via the 'Administration > File Ingest' page.
35
In the BloodHound UI, what does an object represented only by a SID or as 'no name or id' indicate?
It means that no data has been collected for that specific object yet.
36
What is a piece of local group membership data that cannot be collected using LDAP alone?
Restricted group data, which is defined and applied via Group Policy Objects (GPOs).
37
In which file, located in a GPO's SYSVOL path, is restricted group membership data defined?
GptTmpl.inf
38
What is the typical path structure to find the `GptTmpl.inf` file for a GPO?
\\\SysVol\\Policies\{GPO_GUID}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf
39
In BloodHound, what type of query language is used to manually add relationships, such as those for restricted groups?
Cypher
40
What do WMI filters allow a GPO to do?
They allow for additional criteria to be set on GPO application, restricting it to computers that match a specific WMI query.
41
What is a major limitation of BloodHound (at the time of writing) regarding GPOs and WMI filters?
BloodHound does not collect, display, or evaluate WMI filters when building its graphs.
42
Which attribute of a GPO object indicates that a WMI filter is applied to it?
gPCWQLFilter
43
In Active Directory, WMI filter objects are stored in which container?
The `CN=System,CN=WmiPolicy,CN=SOM` container.
44
What is the `objectClass` of a WMI filter object in Active Directory?
msWMI-Som
45
Which attribute of a `msWMI-Som` object stores the actual WMI query string?
msWMI-Parm2
46
What is the relationship between GPOs and WMI filters?
It is a one-to-many relationship; a GPO can have only one WMI filter, but a WMI filter can be applied to multiple GPOs.
47
What LDAP `objectClass` represents a computer account in the domain?
computer
48
What LDAP `objectClass` is a container for storing users, computers, and other account objects?
organizationalUnit
49
What LDAP `objectClass` is a container for storing Group Policy Objects?
groupPolicyContainer
50
What specific SID represents the built-in Administrators group on a local machine?
S-1-5-32-544