PyADRecon-ADWS 0.4.1__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/CHANGELOG.md +12 -12
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PKG-INFO +51 -35
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PyADRecon_ADWS.egg-info/PKG-INFO +51 -35
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/README.md +50 -34
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/dashboard_generator.py +206 -10
- pyadrecon_adws-0.4.3/package.json +3 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/pyadrecon_adws.py +1 -1
- pyadrecon_adws-0.4.1/package.json +0 -3
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.dockerignore +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.github/FUNDING.yml +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.github/pyadrecon.png +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.github/workflows/conventional-commits.yml +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.github/workflows/pypi.yml +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/.gitignore +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/Dockerfile +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/LICENSE +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/__init__.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/__init__.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/adws.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/__init__.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/encoder.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/__init__.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/attributes.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/constants.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/datatypes.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/elements.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/record.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/text.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/records/utils.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/encoder/xml_parser.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/ms_nmf.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/ms_nns.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws/soap_templates.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/helpers/adws_wrapper.py +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/pyproject.toml +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/requirements.txt +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/setup.cfg +0 -0
- {pyadrecon_adws-0.4.1 → pyadrecon_adws-0.4.3}/windows/README.md +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
## [0.4.
|
|
1
|
+
## [0.4.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.2...v0.4.3) (2026-02-21)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* add krbtgt rotation and protected users group to dashboard ([93d9e4b](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/93d9e4b36c6fb417549e805788db60099735fb09))
|
|
7
7
|
|
|
8
|
-
## [0.4.
|
|
8
|
+
## [0.4.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.1...v0.4.2) (2026-02-21)
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
*
|
|
13
|
+
* column sorting bug ([158ddfa](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/158ddfafe5f1d9ae8b72bafa6a9b393f9a1d067f))
|
|
14
14
|
|
|
15
|
-
## [0.
|
|
15
|
+
## [0.4.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.0...v0.4.1) (2026-02-21)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
### Bug Fixes
|
|
19
19
|
|
|
20
|
-
*
|
|
20
|
+
* --no-dashboard ([3c0768a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/3c0768a2817c41c7eaa70534a31aa869b049b05a))
|
|
21
21
|
|
|
22
|
-
## [0.
|
|
22
|
+
## [0.4.0](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.12...v0.4.0) (2026-02-21)
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
###
|
|
25
|
+
### Features
|
|
26
26
|
|
|
27
|
-
*
|
|
27
|
+
* html security dashboard generation ([05f72ec](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/05f72ec310f02e122ce7ecbd1118b31fa04eb296))
|
|
28
28
|
|
|
29
|
-
## [0.3.
|
|
29
|
+
## [0.3.12](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.11...v0.3.12) (2026-02-20)
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
### Bug Fixes
|
|
33
33
|
|
|
34
|
-
*
|
|
34
|
+
* initialize sid mappings earlier to support individual --collect adcs runs ([e2ce483](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e2ce483ca44ad805bd1749808f3cc11ee958d5ce))
|
|
35
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyADRecon-ADWS
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
|
|
5
5
|
Author: LRVT
|
|
6
6
|
License-Expression: MIT
|
|
@@ -32,8 +32,9 @@ A Python3 implementation of [PyADRecon](https://github.com/l4rm4nd/PyADRecon) us
|
|
|
32
32
|
- [Installation](#installation)
|
|
33
33
|
- [Usage](#usage)
|
|
34
34
|
- [Docker](#docker)
|
|
35
|
-
- [Known Limitations](#known-limitations)
|
|
36
35
|
- [Collection Modules](#collection-modules)
|
|
36
|
+
- [HTML Dashboard](#html-dashboard)
|
|
37
|
+
- [Known Limitations](#known-limitations)
|
|
37
38
|
- [Acknowledgements](#acknowledgements)
|
|
38
39
|
- [License](#license)
|
|
39
40
|
|
|
@@ -124,37 +125,6 @@ There is also a Docker image available on GHCR.IO.
|
|
|
124
125
|
docker run --rm -v /etc/krb5.conf:/etc/krb5.conf:ro -v /etc/hosts:/etc/hosts:ro -v ./:/tmp/pyadrecon_output ghcr.io/l4rm4nd/pyadrecon-adws:latest -dc dc01.domain.local -u admin -p password123 -d DOMAIN.LOCAL -o /tmp/pyadrecon_output
|
|
125
126
|
````
|
|
126
127
|
|
|
127
|
-
## Known Limitations
|
|
128
|
-
|
|
129
|
-
### Multi-Domain Forests - Certificate Templates
|
|
130
|
-
|
|
131
|
-
When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates. This means:
|
|
132
|
-
|
|
133
|
-
**Issue:**
|
|
134
|
-
- Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
|
|
135
|
-
- Only parent domain principals will appear in enrollment rights
|
|
136
|
-
- This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
|
|
137
|
-
|
|
138
|
-
**Example:**
|
|
139
|
-
- Querying from child domain (`deham.domain.local`): Shows parent domain principals only
|
|
140
|
-
- Querying from parent domain (`domain.local`): Shows all principals including child domain
|
|
141
|
-
|
|
142
|
-
**Solution:**
|
|
143
|
-
- For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC:
|
|
144
|
-
```bash
|
|
145
|
-
# Instead of connecting to child DC:
|
|
146
|
-
pyadrecon_adws.py -dc child-dc.deham.domain.local -d deham.domain.local ...
|
|
147
|
-
|
|
148
|
-
# Connect to forest root DC:
|
|
149
|
-
pyadrecon_adws.py -dc root-dc.domain.local -d domain.local ...
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
**Warning:** PyADRecon-ADWS will display a warning when collecting certificate templates from a child domain:
|
|
153
|
-
```
|
|
154
|
-
[WARNING] [!] Connected to child domain - certificate template ACLs may be incomplete!
|
|
155
|
-
[WARNING] For complete ACL data, connect to forest root DC instead.
|
|
156
|
-
```
|
|
157
|
-
|
|
158
128
|
## Collection Modules
|
|
159
129
|
|
|
160
130
|
As default, PyADRecon-ADWS runs all collection modules. They are referenced to as `default` or `all`.
|
|
@@ -217,14 +187,14 @@ Though, you can freely select your own collection of modules to run:
|
|
|
217
187
|
- `dnszones` ✅
|
|
218
188
|
- `dnsrecords` ✅
|
|
219
189
|
|
|
220
|
-
##
|
|
190
|
+
## HTML Dashboard
|
|
221
191
|
|
|
222
192
|
PyADRecon-ADWS will automatically create an HTML dashboard with important stats and security findings.
|
|
223
193
|
|
|
224
194
|
You may disable HTML dashboard generation via `--no-dashboard`.
|
|
225
195
|
|
|
226
196
|
>[!CAUTION]
|
|
227
|
-
> This is a beta feature. Displayed data may be falsely parsed or reported as issue
|
|
197
|
+
> This is a beta feature. Displayed data may be falsely parsed or reported as issue. Take it with a grain of salt!
|
|
228
198
|
|
|
229
199
|
<img width="1209" height="500" alt="image" src="https://github.com/user-attachments/assets/e9500806-374d-4c69-a9a8-7f1540779266" />
|
|
230
200
|
|
|
@@ -236,6 +206,52 @@ You may disable HTML dashboard generation via `--no-dashboard`.
|
|
|
236
206
|
<img width="1253" height="569" alt="image" src="https://github.com/user-attachments/assets/b6c4f94b-9da3-4a55-808d-23036181d02b" />
|
|
237
207
|
</details>
|
|
238
208
|
|
|
209
|
+
## Known Limitations
|
|
210
|
+
|
|
211
|
+
### Multi-Domain Forests – Security Descriptors
|
|
212
|
+
<details>
|
|
213
|
+
<summary><strong>Show details</strong></summary>
|
|
214
|
+
|
|
215
|
+
<br>
|
|
216
|
+
|
|
217
|
+
When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates.
|
|
218
|
+
|
|
219
|
+
**Issue:**
|
|
220
|
+
- Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
|
|
221
|
+
- Only parent domain principals will appear in enrollment rights
|
|
222
|
+
- This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
|
|
223
|
+
|
|
224
|
+
**Example:**
|
|
225
|
+
- Querying from child domain (`child.domain.local`): Shows parent domain principals only
|
|
226
|
+
- Querying from parent domain (`domain.local`): Shows all principals including child domain
|
|
227
|
+
|
|
228
|
+
**Solution:**
|
|
229
|
+
- For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC
|
|
230
|
+
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
### Multi-Domain Forests – LDAP Referrals
|
|
234
|
+
|
|
235
|
+
<details>
|
|
236
|
+
<summary><strong>Show details</strong></summary>
|
|
237
|
+
|
|
238
|
+
<br>
|
|
239
|
+
|
|
240
|
+
When querying a **child domain** in a multi-domain forest, LDAP may return **referrals** for objects that reside in a different naming context (for example, the forest root domain).
|
|
241
|
+
|
|
242
|
+
**Issue:**
|
|
243
|
+
- Queries for forest-root objects (e.g., *Enterprise Admins*, *Schema Admins*, or root-domain users/groups) may return LDAP referrals
|
|
244
|
+
- PyADRecon does **not** chase LDAP referrals
|
|
245
|
+
- Referred objects are therefore **not collected automatically**
|
|
246
|
+
|
|
247
|
+
**Solution:**
|
|
248
|
+
- To ensure complete forest-wide enumeration, run PyADRecon separately against:
|
|
249
|
+
- The **child domain**
|
|
250
|
+
- The **forest root domain**
|
|
251
|
+
- Combine results manually if full forest visibility is required
|
|
252
|
+
|
|
253
|
+
</details>
|
|
254
|
+
|
|
239
255
|
## Acknowledgements
|
|
240
256
|
|
|
241
257
|
Many thanks to the following folks:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyADRecon-ADWS
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
|
|
5
5
|
Author: LRVT
|
|
6
6
|
License-Expression: MIT
|
|
@@ -32,8 +32,9 @@ A Python3 implementation of [PyADRecon](https://github.com/l4rm4nd/PyADRecon) us
|
|
|
32
32
|
- [Installation](#installation)
|
|
33
33
|
- [Usage](#usage)
|
|
34
34
|
- [Docker](#docker)
|
|
35
|
-
- [Known Limitations](#known-limitations)
|
|
36
35
|
- [Collection Modules](#collection-modules)
|
|
36
|
+
- [HTML Dashboard](#html-dashboard)
|
|
37
|
+
- [Known Limitations](#known-limitations)
|
|
37
38
|
- [Acknowledgements](#acknowledgements)
|
|
38
39
|
- [License](#license)
|
|
39
40
|
|
|
@@ -124,37 +125,6 @@ There is also a Docker image available on GHCR.IO.
|
|
|
124
125
|
docker run --rm -v /etc/krb5.conf:/etc/krb5.conf:ro -v /etc/hosts:/etc/hosts:ro -v ./:/tmp/pyadrecon_output ghcr.io/l4rm4nd/pyadrecon-adws:latest -dc dc01.domain.local -u admin -p password123 -d DOMAIN.LOCAL -o /tmp/pyadrecon_output
|
|
125
126
|
````
|
|
126
127
|
|
|
127
|
-
## Known Limitations
|
|
128
|
-
|
|
129
|
-
### Multi-Domain Forests - Certificate Templates
|
|
130
|
-
|
|
131
|
-
When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates. This means:
|
|
132
|
-
|
|
133
|
-
**Issue:**
|
|
134
|
-
- Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
|
|
135
|
-
- Only parent domain principals will appear in enrollment rights
|
|
136
|
-
- This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
|
|
137
|
-
|
|
138
|
-
**Example:**
|
|
139
|
-
- Querying from child domain (`deham.domain.local`): Shows parent domain principals only
|
|
140
|
-
- Querying from parent domain (`domain.local`): Shows all principals including child domain
|
|
141
|
-
|
|
142
|
-
**Solution:**
|
|
143
|
-
- For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC:
|
|
144
|
-
```bash
|
|
145
|
-
# Instead of connecting to child DC:
|
|
146
|
-
pyadrecon_adws.py -dc child-dc.deham.domain.local -d deham.domain.local ...
|
|
147
|
-
|
|
148
|
-
# Connect to forest root DC:
|
|
149
|
-
pyadrecon_adws.py -dc root-dc.domain.local -d domain.local ...
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
**Warning:** PyADRecon-ADWS will display a warning when collecting certificate templates from a child domain:
|
|
153
|
-
```
|
|
154
|
-
[WARNING] [!] Connected to child domain - certificate template ACLs may be incomplete!
|
|
155
|
-
[WARNING] For complete ACL data, connect to forest root DC instead.
|
|
156
|
-
```
|
|
157
|
-
|
|
158
128
|
## Collection Modules
|
|
159
129
|
|
|
160
130
|
As default, PyADRecon-ADWS runs all collection modules. They are referenced to as `default` or `all`.
|
|
@@ -217,14 +187,14 @@ Though, you can freely select your own collection of modules to run:
|
|
|
217
187
|
- `dnszones` ✅
|
|
218
188
|
- `dnsrecords` ✅
|
|
219
189
|
|
|
220
|
-
##
|
|
190
|
+
## HTML Dashboard
|
|
221
191
|
|
|
222
192
|
PyADRecon-ADWS will automatically create an HTML dashboard with important stats and security findings.
|
|
223
193
|
|
|
224
194
|
You may disable HTML dashboard generation via `--no-dashboard`.
|
|
225
195
|
|
|
226
196
|
>[!CAUTION]
|
|
227
|
-
> This is a beta feature. Displayed data may be falsely parsed or reported as issue
|
|
197
|
+
> This is a beta feature. Displayed data may be falsely parsed or reported as issue. Take it with a grain of salt!
|
|
228
198
|
|
|
229
199
|
<img width="1209" height="500" alt="image" src="https://github.com/user-attachments/assets/e9500806-374d-4c69-a9a8-7f1540779266" />
|
|
230
200
|
|
|
@@ -236,6 +206,52 @@ You may disable HTML dashboard generation via `--no-dashboard`.
|
|
|
236
206
|
<img width="1253" height="569" alt="image" src="https://github.com/user-attachments/assets/b6c4f94b-9da3-4a55-808d-23036181d02b" />
|
|
237
207
|
</details>
|
|
238
208
|
|
|
209
|
+
## Known Limitations
|
|
210
|
+
|
|
211
|
+
### Multi-Domain Forests – Security Descriptors
|
|
212
|
+
<details>
|
|
213
|
+
<summary><strong>Show details</strong></summary>
|
|
214
|
+
|
|
215
|
+
<br>
|
|
216
|
+
|
|
217
|
+
When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates.
|
|
218
|
+
|
|
219
|
+
**Issue:**
|
|
220
|
+
- Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
|
|
221
|
+
- Only parent domain principals will appear in enrollment rights
|
|
222
|
+
- This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
|
|
223
|
+
|
|
224
|
+
**Example:**
|
|
225
|
+
- Querying from child domain (`child.domain.local`): Shows parent domain principals only
|
|
226
|
+
- Querying from parent domain (`domain.local`): Shows all principals including child domain
|
|
227
|
+
|
|
228
|
+
**Solution:**
|
|
229
|
+
- For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC
|
|
230
|
+
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
### Multi-Domain Forests – LDAP Referrals
|
|
234
|
+
|
|
235
|
+
<details>
|
|
236
|
+
<summary><strong>Show details</strong></summary>
|
|
237
|
+
|
|
238
|
+
<br>
|
|
239
|
+
|
|
240
|
+
When querying a **child domain** in a multi-domain forest, LDAP may return **referrals** for objects that reside in a different naming context (for example, the forest root domain).
|
|
241
|
+
|
|
242
|
+
**Issue:**
|
|
243
|
+
- Queries for forest-root objects (e.g., *Enterprise Admins*, *Schema Admins*, or root-domain users/groups) may return LDAP referrals
|
|
244
|
+
- PyADRecon does **not** chase LDAP referrals
|
|
245
|
+
- Referred objects are therefore **not collected automatically**
|
|
246
|
+
|
|
247
|
+
**Solution:**
|
|
248
|
+
- To ensure complete forest-wide enumeration, run PyADRecon separately against:
|
|
249
|
+
- The **child domain**
|
|
250
|
+
- The **forest root domain**
|
|
251
|
+
- Combine results manually if full forest visibility is required
|
|
252
|
+
|
|
253
|
+
</details>
|
|
254
|
+
|
|
239
255
|
## Acknowledgements
|
|
240
256
|
|
|
241
257
|
Many thanks to the following folks:
|
|
@@ -12,8 +12,9 @@ A Python3 implementation of [PyADRecon](https://github.com/l4rm4nd/PyADRecon) us
|
|
|
12
12
|
- [Installation](#installation)
|
|
13
13
|
- [Usage](#usage)
|
|
14
14
|
- [Docker](#docker)
|
|
15
|
-
- [Known Limitations](#known-limitations)
|
|
16
15
|
- [Collection Modules](#collection-modules)
|
|
16
|
+
- [HTML Dashboard](#html-dashboard)
|
|
17
|
+
- [Known Limitations](#known-limitations)
|
|
17
18
|
- [Acknowledgements](#acknowledgements)
|
|
18
19
|
- [License](#license)
|
|
19
20
|
|
|
@@ -104,37 +105,6 @@ There is also a Docker image available on GHCR.IO.
|
|
|
104
105
|
docker run --rm -v /etc/krb5.conf:/etc/krb5.conf:ro -v /etc/hosts:/etc/hosts:ro -v ./:/tmp/pyadrecon_output ghcr.io/l4rm4nd/pyadrecon-adws:latest -dc dc01.domain.local -u admin -p password123 -d DOMAIN.LOCAL -o /tmp/pyadrecon_output
|
|
105
106
|
````
|
|
106
107
|
|
|
107
|
-
## Known Limitations
|
|
108
|
-
|
|
109
|
-
### Multi-Domain Forests - Certificate Templates
|
|
110
|
-
|
|
111
|
-
When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates. This means:
|
|
112
|
-
|
|
113
|
-
**Issue:**
|
|
114
|
-
- Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
|
|
115
|
-
- Only parent domain principals will appear in enrollment rights
|
|
116
|
-
- This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
|
|
117
|
-
|
|
118
|
-
**Example:**
|
|
119
|
-
- Querying from child domain (`deham.domain.local`): Shows parent domain principals only
|
|
120
|
-
- Querying from parent domain (`domain.local`): Shows all principals including child domain
|
|
121
|
-
|
|
122
|
-
**Solution:**
|
|
123
|
-
- For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC:
|
|
124
|
-
```bash
|
|
125
|
-
# Instead of connecting to child DC:
|
|
126
|
-
pyadrecon_adws.py -dc child-dc.deham.domain.local -d deham.domain.local ...
|
|
127
|
-
|
|
128
|
-
# Connect to forest root DC:
|
|
129
|
-
pyadrecon_adws.py -dc root-dc.domain.local -d domain.local ...
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
**Warning:** PyADRecon-ADWS will display a warning when collecting certificate templates from a child domain:
|
|
133
|
-
```
|
|
134
|
-
[WARNING] [!] Connected to child domain - certificate template ACLs may be incomplete!
|
|
135
|
-
[WARNING] For complete ACL data, connect to forest root DC instead.
|
|
136
|
-
```
|
|
137
|
-
|
|
138
108
|
## Collection Modules
|
|
139
109
|
|
|
140
110
|
As default, PyADRecon-ADWS runs all collection modules. They are referenced to as `default` or `all`.
|
|
@@ -197,14 +167,14 @@ Though, you can freely select your own collection of modules to run:
|
|
|
197
167
|
- `dnszones` ✅
|
|
198
168
|
- `dnsrecords` ✅
|
|
199
169
|
|
|
200
|
-
##
|
|
170
|
+
## HTML Dashboard
|
|
201
171
|
|
|
202
172
|
PyADRecon-ADWS will automatically create an HTML dashboard with important stats and security findings.
|
|
203
173
|
|
|
204
174
|
You may disable HTML dashboard generation via `--no-dashboard`.
|
|
205
175
|
|
|
206
176
|
>[!CAUTION]
|
|
207
|
-
> This is a beta feature. Displayed data may be falsely parsed or reported as issue
|
|
177
|
+
> This is a beta feature. Displayed data may be falsely parsed or reported as issue. Take it with a grain of salt!
|
|
208
178
|
|
|
209
179
|
<img width="1209" height="500" alt="image" src="https://github.com/user-attachments/assets/e9500806-374d-4c69-a9a8-7f1540779266" />
|
|
210
180
|
|
|
@@ -216,6 +186,52 @@ You may disable HTML dashboard generation via `--no-dashboard`.
|
|
|
216
186
|
<img width="1253" height="569" alt="image" src="https://github.com/user-attachments/assets/b6c4f94b-9da3-4a55-808d-23036181d02b" />
|
|
217
187
|
</details>
|
|
218
188
|
|
|
189
|
+
## Known Limitations
|
|
190
|
+
|
|
191
|
+
### Multi-Domain Forests – Security Descriptors
|
|
192
|
+
<details>
|
|
193
|
+
<summary><strong>Show details</strong></summary>
|
|
194
|
+
|
|
195
|
+
<br>
|
|
196
|
+
|
|
197
|
+
When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates.
|
|
198
|
+
|
|
199
|
+
**Issue:**
|
|
200
|
+
- Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
|
|
201
|
+
- Only parent domain principals will appear in enrollment rights
|
|
202
|
+
- This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
|
|
203
|
+
|
|
204
|
+
**Example:**
|
|
205
|
+
- Querying from child domain (`child.domain.local`): Shows parent domain principals only
|
|
206
|
+
- Querying from parent domain (`domain.local`): Shows all principals including child domain
|
|
207
|
+
|
|
208
|
+
**Solution:**
|
|
209
|
+
- For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC
|
|
210
|
+
|
|
211
|
+
</details>
|
|
212
|
+
|
|
213
|
+
### Multi-Domain Forests – LDAP Referrals
|
|
214
|
+
|
|
215
|
+
<details>
|
|
216
|
+
<summary><strong>Show details</strong></summary>
|
|
217
|
+
|
|
218
|
+
<br>
|
|
219
|
+
|
|
220
|
+
When querying a **child domain** in a multi-domain forest, LDAP may return **referrals** for objects that reside in a different naming context (for example, the forest root domain).
|
|
221
|
+
|
|
222
|
+
**Issue:**
|
|
223
|
+
- Queries for forest-root objects (e.g., *Enterprise Admins*, *Schema Admins*, or root-domain users/groups) may return LDAP referrals
|
|
224
|
+
- PyADRecon does **not** chase LDAP referrals
|
|
225
|
+
- Referred objects are therefore **not collected automatically**
|
|
226
|
+
|
|
227
|
+
**Solution:**
|
|
228
|
+
- To ensure complete forest-wide enumeration, run PyADRecon separately against:
|
|
229
|
+
- The **child domain**
|
|
230
|
+
- The **forest root domain**
|
|
231
|
+
- Combine results manually if full forest visibility is required
|
|
232
|
+
|
|
233
|
+
</details>
|
|
234
|
+
|
|
219
235
|
## Acknowledgements
|
|
220
236
|
|
|
221
237
|
Many thanks to the following folks:
|
|
@@ -286,6 +286,18 @@ class DashboardGenerator:
|
|
|
286
286
|
.loading-message.show {{
|
|
287
287
|
display: block;
|
|
288
288
|
}}
|
|
289
|
+
|
|
290
|
+
/* Inline tool links - inherit color, no underline, subtle hover */
|
|
291
|
+
.tool-link {{
|
|
292
|
+
color: inherit;
|
|
293
|
+
text-decoration: none;
|
|
294
|
+
border-bottom: 1px dotted currentColor;
|
|
295
|
+
transition: opacity 0.2s;
|
|
296
|
+
}}
|
|
297
|
+
|
|
298
|
+
.tool-link:hover {{
|
|
299
|
+
opacity: 0.7;
|
|
300
|
+
}}
|
|
289
301
|
</style>
|
|
290
302
|
</head>
|
|
291
303
|
<body class="bg-gray-900 dark">
|
|
@@ -467,6 +479,40 @@ class DashboardGenerator:
|
|
|
467
479
|
</div>
|
|
468
480
|
</div>
|
|
469
481
|
</div>
|
|
482
|
+
|
|
483
|
+
<div v-if="krbtgtOldPassword.length > 0" @click="navigateToSection('findings', 'krbtgt-section')" class="stat-card bg-white dark:bg-gray-800 rounded-lg shadow p-6 cursor-pointer hover:shadow-lg transition-shadow">
|
|
484
|
+
<div class="flex items-center">
|
|
485
|
+
<div class="flex-shrink-0 bg-red-100 dark:bg-red-900/30 rounded-md p-3">
|
|
486
|
+
<i class="fas fa-crown text-red-600 text-2xl"></i>
|
|
487
|
+
</div>
|
|
488
|
+
<div class="ml-5 w-0 flex-1">
|
|
489
|
+
<dl>
|
|
490
|
+
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400 truncate">KRBTGT Password Age</dt>
|
|
491
|
+
<dd class="text-3xl font-semibold text-gray-900 dark:text-white">{{{{ krbtgtOldPassword.length }}}}</dd>
|
|
492
|
+
<dd class="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
|
493
|
+
Golden Ticket risk
|
|
494
|
+
</dd>
|
|
495
|
+
</dl>
|
|
496
|
+
</div>
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
|
|
500
|
+
<div v-if="unprotectedPrivilegedUsers.length > 0" @click="navigateToSection('findings', 'protected-users-section')" class="stat-card bg-white dark:bg-gray-800 rounded-lg shadow p-6 cursor-pointer hover:shadow-lg transition-shadow">
|
|
501
|
+
<div class="flex items-center">
|
|
502
|
+
<div class="flex-shrink-0 bg-teal-100 dark:bg-teal-900/30 rounded-md p-3">
|
|
503
|
+
<i class="fas fa-shield-alt text-teal-600 text-2xl"></i>
|
|
504
|
+
</div>
|
|
505
|
+
<div class="ml-5 w-0 flex-1">
|
|
506
|
+
<dl>
|
|
507
|
+
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400 truncate">Privileged Users</dt>
|
|
508
|
+
<dd class="text-3xl font-semibold text-gray-900 dark:text-white">{{{{ unprotectedPrivilegedUsers.length }}}}</dd>
|
|
509
|
+
<dd class="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
|
510
|
+
Not in Protected Users
|
|
511
|
+
</dd>
|
|
512
|
+
</dl>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
470
516
|
</div>
|
|
471
517
|
</div>
|
|
472
518
|
|
|
@@ -774,8 +820,12 @@ class DashboardGenerator:
|
|
|
774
820
|
Attackers can request rogue certificates for domain administrators or other high-privilege accounts, achieving persistent domain compromise without account credentials.
|
|
775
821
|
</p>
|
|
776
822
|
<h3 class="font-semibold text-orange-800 dark:text-orange-200 mb-2">🔓 Exploitation Method</h3>
|
|
823
|
+
<p class="text-orange-700 dark:text-orange-300 text-sm mb-3">
|
|
824
|
+
Tools like <a href="https://github.com/ly4k/Certipy" target="_blank" class="tool-link">Certipy</a> or <a href="https://github.com/GhostPack/Certify" target="_blank" class="tool-link">Certify</a> identify vulnerable templates. Attackers request certificates with elevated permissions, then authenticate using the certificate to obtain TGTs or NTLM hashes.
|
|
825
|
+
</p>
|
|
826
|
+
<h3 class="font-semibold text-orange-800 dark:text-orange-200 mb-2">💡 Remediation</h3>
|
|
777
827
|
<p class="text-orange-700 dark:text-orange-300 text-sm">
|
|
778
|
-
|
|
828
|
+
<strong>Secure template permissions:</strong> Remove enrollment rights from Domain Users/Authenticated Users. Enable Manager Approval for high-risk templates. Set "This number of authorized signatures" to ≥1 for ESC1. Disable "Enrollee Supplies Subject" or require manager approval. Regularly audit certificate templates against ESC vulnerabilities using <a href="https://github.com/GhostPack/Certify" target="_blank" class="tool-link">Certify</a>, <a href="https://github.com/ly4k/Certipy" target="_blank" class="tool-link">Certipy</a> or <a href="https://github.com/TrimarcJake/Locksmith" target="_blank" class="tool-link">Locksmith</a>.
|
|
779
829
|
</p>
|
|
780
830
|
</div>
|
|
781
831
|
<div class="table-container">
|
|
@@ -848,9 +898,13 @@ class DashboardGenerator:
|
|
|
848
898
|
Any domain user can request TGS tickets for these accounts and perform offline password cracking without raising alerts. Weak or old passwords are particularly vulnerable.
|
|
849
899
|
</p>
|
|
850
900
|
<h3 class="font-semibold text-purple-800 dark:text-purple-200 mb-2">🔓 Exploitation Method</h3>
|
|
851
|
-
<p class="text-purple-700 dark:text-purple-300 text-sm">
|
|
901
|
+
<p class="text-purple-700 dark:text-purple-300 text-sm mb-3">
|
|
852
902
|
Tools: Rubeus, Invoke-Kerberoast, GetUserSPNs.py. Request TGS tickets, extract to disk, crack with Hashcat/John. Success = service account compromise.
|
|
853
903
|
</p>
|
|
904
|
+
<h3 class="font-semibold text-purple-800 dark:text-purple-200 mb-2">💡 Remediation</h3>
|
|
905
|
+
<p class="text-purple-700 dark:text-purple-300 text-sm">
|
|
906
|
+
<strong>Use strong passwords (25+ characters) or better gMSA:</strong> Service accounts should use Group Managed Service Accounts (gMSA) which auto-rotate passwords. For standard accounts, enforce minimum 25-character passwords, rotate every 90 days, and implement least privilege. Remove unnecessary SPNs from user accounts.
|
|
907
|
+
</p>
|
|
854
908
|
</div>
|
|
855
909
|
<div class="table-container">
|
|
856
910
|
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
|
@@ -929,9 +983,13 @@ class DashboardGenerator:
|
|
|
929
983
|
No authentication required - attackers can request AS-REP messages for these accounts without valid credentials and perform offline brute-force attacks.
|
|
930
984
|
</p>
|
|
931
985
|
<h3 class="font-semibold text-pink-800 dark:text-pink-200 mb-2">🔓 Exploitation Method</h3>
|
|
932
|
-
<p class="text-pink-700 dark:text-pink-300 text-sm">
|
|
986
|
+
<p class="text-pink-700 dark:text-pink-300 text-sm mb-3">
|
|
933
987
|
Tools: Rubeus, GetNPUsers.py. Request AS-REP for target accounts, extract encrypted portion, crack offline with Hashcat format 18200 or John.
|
|
934
988
|
</p>
|
|
989
|
+
<h3 class="font-semibold text-pink-800 dark:text-pink-200 mb-2">💡 Remediation</h3>
|
|
990
|
+
<p class="text-pink-700 dark:text-pink-300 text-sm">
|
|
991
|
+
<strong>Enable Kerberos pre-authentication:</strong> Remove "Do not require Kerberos preauthentication" flag from all user accounts unless absolutely necessary for legacy applications. For required exceptions, enforce strong passwords (25+ characters), monitor for AS-REP requests, and consider isolating these accounts to restricted network segments.
|
|
992
|
+
</p>
|
|
935
993
|
</div>
|
|
936
994
|
<div class="table-container">
|
|
937
995
|
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
|
@@ -1010,9 +1068,13 @@ class DashboardGenerator:
|
|
|
1010
1068
|
Instant account compromise without cracking. Attackers simply read user attributes to obtain valid credentials, enabling lateral movement and privilege escalation.
|
|
1011
1069
|
</p>
|
|
1012
1070
|
<h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">🔓 Exploitation Method</h3>
|
|
1013
|
-
<p class="text-red-700 dark:text-red-300 text-sm">
|
|
1071
|
+
<p class="text-red-700 dark:text-red-300 text-sm mb-3">
|
|
1014
1072
|
LDAP queries or tools like BloodHound/PowerView enumerate user descriptions containing password patterns. Direct login with discovered credentials.
|
|
1015
1073
|
</p>
|
|
1074
|
+
<h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">💡 Remediation</h3>
|
|
1075
|
+
<p class="text-red-700 dark:text-red-300 text-sm">
|
|
1076
|
+
<strong>Immediately remove all passwords from user attributes:</strong> Clear 'description' and 'info' fields of all password-like strings. Never store secrets in LDAP attributes again. Force password resets for affected accounts. Implement security awareness training about proper credential storage. Regularly audit user attributes using scripts to detect and prevent future occurrences.
|
|
1077
|
+
</p>
|
|
1016
1078
|
</div>
|
|
1017
1079
|
<div class="table-container">
|
|
1018
1080
|
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
|
@@ -1064,9 +1126,13 @@ class DashboardGenerator:
|
|
|
1064
1126
|
Compromised systems with readable LAPS passwords grant local administrator access, enabling credential dumping, persistence mechanisms, and lateral movement across the environment.
|
|
1065
1127
|
</p>
|
|
1066
1128
|
<h3 class="font-semibold text-indigo-800 dark:text-indigo-200 mb-2">🔓 Exploitation Method</h3>
|
|
1067
|
-
<p class="text-indigo-700 dark:text-indigo-300 text-sm">
|
|
1129
|
+
<p class="text-indigo-700 dark:text-indigo-300 text-sm mb-3">
|
|
1068
1130
|
Query AD attributes ms-Mcs-AdmPwd and ms-Mcs-AdmPwdExpirationTime. Tools: LAPSToolkit, PowerView. Use retrieved passwords for PSExec/WMI/RDP access.
|
|
1069
1131
|
</p>
|
|
1132
|
+
<h3 class="font-semibold text-indigo-800 dark:text-indigo-200 mb-2">💡 Remediation</h3>
|
|
1133
|
+
<p class="text-indigo-700 dark:text-indigo-300 text-sm">
|
|
1134
|
+
<strong>Restrict LAPS password read permissions:</strong> Only designated IT admin groups should have read access to ms-Mcs-AdmPwd attribute. Remove "All Extended Rights" and grant only specific LAPS read permissions to authorized security groups. Regularly audit permissions using AccessChk or custom scripts. Consider implementing LAPS password rotation to limit exposure window.
|
|
1135
|
+
</p>
|
|
1070
1136
|
</div>
|
|
1071
1137
|
<div class="table-container">
|
|
1072
1138
|
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
|
@@ -1147,6 +1213,109 @@ class DashboardGenerator:
|
|
|
1147
1213
|
</div>
|
|
1148
1214
|
</div>
|
|
1149
1215
|
|
|
1216
|
+
<!-- KRBTGT Password Rotation -->
|
|
1217
|
+
<div id="krbtgt-section" v-if="krbtgtOldPassword.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
|
1218
|
+
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
|
|
1219
|
+
<i class="fas fa-crown text-red-600"></i> KRBTGT Password Rotation ({{{{ krbtgtOldPassword.length }}}})
|
|
1220
|
+
</h2>
|
|
1221
|
+
<div class="bg-red-50 dark:bg-red-900/20 border-l-4 border-red-500 p-4 mb-6">
|
|
1222
|
+
<h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">🎯 Issue & Impact</h3>
|
|
1223
|
+
<p class="text-red-700 dark:text-red-300 text-sm mb-3">
|
|
1224
|
+
The KRBTGT account password has not been rotated in over 365 days. This account is used to encrypt and sign all Kerberos tickets in the domain. A compromised KRBTGT password hash enables Golden Ticket attacks, providing persistent, undetectable domain dominance.
|
|
1225
|
+
</p>
|
|
1226
|
+
<h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">⚔️ Attacker Benefit</h3>
|
|
1227
|
+
<p class="text-red-700 dark:text-red-300 text-sm mb-3">
|
|
1228
|
+
With the KRBTGT hash, attackers can forge Kerberos Ticket Granting Tickets (TGTs) for any user, including Domain Admins. These Golden Tickets remain valid even after password resets, providing persistent backdoor access. Detection is nearly impossible as forged tickets appear legitimate to all domain systems.
|
|
1229
|
+
</p>
|
|
1230
|
+
<h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">🔓 Exploitation Method</h3>
|
|
1231
|
+
<p class="text-red-700 dark:text-red-300 text-sm mb-3">
|
|
1232
|
+
Tools: Mimikatz, Rubeus, Impacket's ticketer.py. Once KRBTGT hash is obtained (via DCSync or DC compromise), attackers craft Golden Tickets with arbitrary privileges. Tickets work across all domain resources without re-authentication. Old KRBTGT passwords that haven't been rotated remain valid indefinitely.
|
|
1233
|
+
</p>
|
|
1234
|
+
<h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">💡 Remediation</h3>
|
|
1235
|
+
<p class="text-red-700 dark:text-red-300 text-sm">
|
|
1236
|
+
<strong>Rotate KRBTGT password twice</strong> with a 10-hour wait between rotations to invalidate all existing tickets. Use Microsoft's official script or KRBTGT Reset Toolkit. Establish a regular rotation schedule every 180 days and rotate immediately twice after any suspected compromise.
|
|
1237
|
+
</p>
|
|
1238
|
+
</div>
|
|
1239
|
+
<div class="table-container">
|
|
1240
|
+
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
|
1241
|
+
<thead>
|
|
1242
|
+
<tr>
|
|
1243
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Account Name</th>
|
|
1244
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Password Last Set</th>
|
|
1245
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Password Age (days)</th>
|
|
1246
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Risk</th>
|
|
1247
|
+
</tr>
|
|
1248
|
+
</thead>
|
|
1249
|
+
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
|
|
1250
|
+
<tr v-for="account in krbtgtOldPassword" :key="account['SAM Account Name'] || account.SAMAccountName || account.UserName || account.User">
|
|
1251
|
+
<td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ account['SAM Account Name'] || account.SAMAccountName || account.UserName || account.User || 'krbtgt' }}}}</td>
|
|
1252
|
+
<td class="px-6 py-4">{{{{ account['Password Last Set'] || account.PasswordLastSet || 'N/A' }}}}</td>
|
|
1253
|
+
<td class="px-6 py-4">
|
|
1254
|
+
<span :class="parseInt(account['Password Age (days)']) > 730 ? 'badge badge-critical' : 'badge badge-high'">
|
|
1255
|
+
{{{{ account['Password Age (days)'] }}}} days
|
|
1256
|
+
</span>
|
|
1257
|
+
</td>
|
|
1258
|
+
<td class="px-6 py-4">
|
|
1259
|
+
<span class="badge badge-critical">GOLDEN TICKET RISK</span>
|
|
1260
|
+
</td>
|
|
1261
|
+
</tr>
|
|
1262
|
+
</tbody>
|
|
1263
|
+
</table>
|
|
1264
|
+
</div>
|
|
1265
|
+
</div>
|
|
1266
|
+
|
|
1267
|
+
<!-- Unprotected Privileged Users -->
|
|
1268
|
+
<div id="protected-users-section" v-if="unprotectedPrivilegedUsers.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
|
1269
|
+
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
|
|
1270
|
+
<i class="fas fa-shield-alt text-teal-600"></i> Unprotected Privileged Users ({{{{ unprotectedPrivilegedUsers.length }}}})
|
|
1271
|
+
</h2>
|
|
1272
|
+
<div class="bg-teal-50 dark:bg-teal-900/20 border-l-4 border-teal-500 p-4 mb-6">
|
|
1273
|
+
<h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">🎯 Issue & Impact</h3>
|
|
1274
|
+
<p class="text-teal-700 dark:text-teal-300 text-sm mb-3">
|
|
1275
|
+
Privileged accounts (Domain Admins, Enterprise Admins, Administrators) not in the Protected Users security group lack critical protections against credential theft attacks. This group enforces non-delegable credentials, NTLMv2-only authentication, Kerberos AES encryption, and restrictions on credential caching.
|
|
1276
|
+
</p>
|
|
1277
|
+
<h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">⚔️ Attacker Benefit</h3>
|
|
1278
|
+
<p class="text-teal-700 dark:text-teal-300 text-sm mb-3">
|
|
1279
|
+
Without Protected Users protections, privileged accounts are vulnerable to Pass-the-Hash, Pass-the-Ticket, credential delegation abuse, and offline attacks on weak/legacy encryption. Compromising these accounts grants domain-wide control.
|
|
1280
|
+
</p>
|
|
1281
|
+
<h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">🔓 Exploitation Method</h3>
|
|
1282
|
+
<p class="text-teal-700 dark:text-teal-300 text-sm mb-3">
|
|
1283
|
+
Tools: Mimikatz (sekurlsa::logonpasswords, sekurlsa::tickets), Rubeus, Impacket. Extract credentials from LSASS memory, perform Pass-the-Hash/Pass-the-Ticket attacks. Unconstrained/constrained delegation allows ticket theft. RC4 encryption susceptible to offline cracking.
|
|
1284
|
+
</p>
|
|
1285
|
+
<h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">💡 Remediation</h3>
|
|
1286
|
+
<p class="text-teal-700 dark:text-teal-300 text-sm">
|
|
1287
|
+
<strong>Add privileged accounts to Protected Users group:</strong> For Windows Server 2012 R2+ domains, add Domain Admins, Enterprise Admins, and other Tier 0 accounts to the "Protected Users" group. This enforces: no NTLM authentication (Kerberos only), no DES/RC4 encryption, no credential delegation, no password caching. Test compatibility before deployment as some legacy applications may break.
|
|
1288
|
+
</p>
|
|
1289
|
+
</div>
|
|
1290
|
+
<div class="table-container">
|
|
1291
|
+
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
|
1292
|
+
<thead>
|
|
1293
|
+
<tr>
|
|
1294
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">SAM Account Name</th>
|
|
1295
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Name</th>
|
|
1296
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Status</th>
|
|
1297
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Last Logon</th>
|
|
1298
|
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Risk Level</th>
|
|
1299
|
+
</tr>
|
|
1300
|
+
</thead>
|
|
1301
|
+
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
|
|
1302
|
+
<tr v-for="user in unprotectedPrivilegedUsers" :key="user['SAM Account Name']">
|
|
1303
|
+
<td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ user['SAM Account Name'] }}}}</td>
|
|
1304
|
+
<td class="px-6 py-4">{{{{ user.Name || 'N/A' }}}}</td>
|
|
1305
|
+
<td class="px-6 py-4 text-sm">{{{{ user.Status || 'N/A' }}}}</td>
|
|
1306
|
+
<td class="px-6 py-4 text-sm">{{{{ user['Last Logon'] || 'Never' }}}}</td>
|
|
1307
|
+
<td class="px-6 py-4">
|
|
1308
|
+
<span v-if="user['Risk Level'] === 'CRITICAL' || user['Risk Level'] === 'Critical'" class="badge badge-critical">CRITICAL</span>
|
|
1309
|
+
<span v-else-if="user['Risk Level'] === 'HIGH' || user['Risk Level'] === 'High'" class="badge badge-high">HIGH</span>
|
|
1310
|
+
<span v-else-if="user['Risk Level'] === 'MEDIUM' || user['Risk Level'] === 'Medium'" class="badge badge-medium">MEDIUM</span>
|
|
1311
|
+
<span v-else class="badge badge-low">{{{{ user['Risk Level'] || 'LOW' }}}}</span>
|
|
1312
|
+
</td>
|
|
1313
|
+
</tr>
|
|
1314
|
+
</tbody>
|
|
1315
|
+
</table>
|
|
1316
|
+
</div>
|
|
1317
|
+
</div>
|
|
1318
|
+
|
|
1150
1319
|
<!-- Password Policy Analysis -->
|
|
1151
1320
|
<div id="password-policy-section" v-if="passwordPolicy.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
|
1152
1321
|
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
|
|
@@ -1162,9 +1331,13 @@ class DashboardGenerator:
|
|
|
1162
1331
|
Weak policies enable password spraying attacks, where attackers try common passwords against many accounts. Long password ages mean compromised passwords remain valid indefinitely. Weak lockout thresholds allow unlimited brute-force attempts.
|
|
1163
1332
|
</p>
|
|
1164
1333
|
<h3 class="font-semibold text-orange-800 dark:text-orange-200 mb-2">🔓 Exploitation Method</h3>
|
|
1165
|
-
<p class="text-orange-700 dark:text-orange-300 text-sm">
|
|
1334
|
+
<p class="text-orange-700 dark:text-orange-300 text-sm mb-3">
|
|
1166
1335
|
Tools: Hydra, Medusa, CrackMapExec. Attackers enumerate users, spray common passwords, escalate with compromised credentials. No complexity = simple passwords work.
|
|
1167
1336
|
</p>
|
|
1337
|
+
<h3 class="font-semibold text-orange-800 dark:text-orange-200 mb-2">💡 Remediation</h3>
|
|
1338
|
+
<p class="text-orange-700 dark:text-orange-300 text-sm">
|
|
1339
|
+
<strong>Implement CIS-compliant password policy:</strong> Minimum 14 characters, maximum age 365 days (90 for privileged accounts), password history 24, lockout threshold 5 attempts, lockout duration 15 minutes. Enable password complexity requirements. Consider passphrase policy over traditional complexity. Implement Fine-Grained Password Policies (FGPP) for privileged accounts with stricter requirements.
|
|
1340
|
+
</p>
|
|
1168
1341
|
</div>
|
|
1169
1342
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
1170
1343
|
<div v-for="policy in passwordPolicy" :key="policy.Policy"
|
|
@@ -1722,6 +1895,12 @@ class DashboardGenerator:
|
|
|
1722
1895
|
forest() {{
|
|
1723
1896
|
return csvData.Forest || [];
|
|
1724
1897
|
}},
|
|
1898
|
+
krbtgt() {{
|
|
1899
|
+
return csvData.krbtgt || [];
|
|
1900
|
+
}},
|
|
1901
|
+
protectedGroups() {{
|
|
1902
|
+
return csvData.ProtectedGroups || [];
|
|
1903
|
+
}},
|
|
1725
1904
|
|
|
1726
1905
|
aboutInfo() {{
|
|
1727
1906
|
const about = csvData.AboutPyADRecon || [];
|
|
@@ -1850,6 +2029,24 @@ class DashboardGenerator:
|
|
|
1850
2029
|
return csvData.LAPS ? csvData.LAPS.filter(l => l.Readable === 'True' || l.Readable === 'TRUE') : [];
|
|
1851
2030
|
}},
|
|
1852
2031
|
|
|
2032
|
+
krbtgtOldPassword() {{
|
|
2033
|
+
return this.krbtgt.filter(k => {{
|
|
2034
|
+
const pwdAge = parseInt(k['Password Age (days)']);
|
|
2035
|
+
return !isNaN(pwdAge) && pwdAge > 180;
|
|
2036
|
+
}});
|
|
2037
|
+
}},
|
|
2038
|
+
|
|
2039
|
+
unprotectedPrivilegedUsers() {{
|
|
2040
|
+
return this.protectedGroups.filter(u => {{
|
|
2041
|
+
// Users not in Protected Users group with Risk Level > Low
|
|
2042
|
+
const notInProtectedUsers = u['In Protected Users Group'] === 'No' || u['In Protected Users Group'] === 'NO';
|
|
2043
|
+
const isUser = u.Type === 'User' || u.Type === 'USER';
|
|
2044
|
+
const riskLevel = (u['Risk Level'] || '').toUpperCase();
|
|
2045
|
+
const highRisk = riskLevel === 'MEDIUM' || riskLevel === 'HIGH' || riskLevel === 'CRITICAL';
|
|
2046
|
+
return isUser && notInProtectedUsers && highRisk;
|
|
2047
|
+
}});
|
|
2048
|
+
}},
|
|
2049
|
+
|
|
1853
2050
|
lapsEnabled() {{
|
|
1854
2051
|
return this.laps.filter(l => l['LAPS Enabled'] === 'True' || l['LAPS Enabled'] === 'TRUE');
|
|
1855
2052
|
}},
|
|
@@ -1929,7 +2126,7 @@ class DashboardGenerator:
|
|
|
1929
2126
|
}},
|
|
1930
2127
|
|
|
1931
2128
|
filteredUsers() {{
|
|
1932
|
-
let filtered = this.users;
|
|
2129
|
+
let filtered = [...this.users];
|
|
1933
2130
|
|
|
1934
2131
|
// Apply search
|
|
1935
2132
|
if (this.userSearch) {{
|
|
@@ -2188,7 +2385,7 @@ class DashboardGenerator:
|
|
|
2188
2385
|
}},
|
|
2189
2386
|
|
|
2190
2387
|
filteredComputers() {{
|
|
2191
|
-
let filtered = this.computers;
|
|
2388
|
+
let filtered = [...this.computers];
|
|
2192
2389
|
|
|
2193
2390
|
// Apply search
|
|
2194
2391
|
if (this.computerSearch) {{
|
|
@@ -2782,8 +2979,7 @@ class DashboardGenerator:
|
|
|
2782
2979
|
with open(self.output_file, 'w', encoding='utf-8') as f:
|
|
2783
2980
|
f.write(html_content)
|
|
2784
2981
|
|
|
2785
|
-
print(f"[+] Dashboard generated: {self.output_file}")
|
|
2786
|
-
print(f" Open it in your browser to view the interactive report")
|
|
2982
|
+
print(f"[INFO] [+] Dashboard generated: {self.output_file}")
|
|
2787
2983
|
return True
|
|
2788
2984
|
|
|
2789
2985
|
|
|
@@ -77,7 +77,7 @@ except ImportError:
|
|
|
77
77
|
DASHBOARD_AVAILABLE = False
|
|
78
78
|
|
|
79
79
|
# Constants
|
|
80
|
-
VERSION = "v0.4.
|
|
80
|
+
VERSION = "v0.4.3" # Automatically updated by CI/CD pipeline during release
|
|
81
81
|
BANNER = f"""
|
|
82
82
|
╔═══════════════════════════════════════════════════════════════════
|
|
83
83
|
║ PyADRecon-ADWS {VERSION} - Python AD Reconnaissance Tool (ADWS)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|