PyADRecon-ADWS 0.4.2__tar.gz → 0.4.4__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.
Files changed (45) hide show
  1. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/CHANGELOG.md +12 -12
  2. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PKG-INFO +50 -35
  3. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PyADRecon_ADWS.egg-info/PKG-INFO +50 -35
  4. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/README.md +49 -34
  5. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/dashboard_generator.py +222 -8
  6. pyadrecon_adws-0.4.4/package.json +3 -0
  7. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/pyadrecon_adws.py +1 -1
  8. pyadrecon_adws-0.4.2/package.json +0 -3
  9. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.dockerignore +0 -0
  10. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.github/FUNDING.yml +0 -0
  11. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  12. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  13. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.github/pyadrecon.png +0 -0
  14. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.github/workflows/conventional-commits.yml +0 -0
  15. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.github/workflows/pypi.yml +0 -0
  16. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/.gitignore +0 -0
  17. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/Dockerfile +0 -0
  18. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/LICENSE +0 -0
  19. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
  20. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
  21. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
  22. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
  23. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
  24. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/__init__.py +0 -0
  25. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/__init__.py +0 -0
  26. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/adws.py +0 -0
  27. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/__init__.py +0 -0
  28. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/encoder.py +0 -0
  29. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/__init__.py +0 -0
  30. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/attributes.py +0 -0
  31. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/constants.py +0 -0
  32. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/datatypes.py +0 -0
  33. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/elements.py +0 -0
  34. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/record.py +0 -0
  35. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/text.py +0 -0
  36. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/records/utils.py +0 -0
  37. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/encoder/xml_parser.py +0 -0
  38. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/ms_nmf.py +0 -0
  39. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/ms_nns.py +0 -0
  40. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws/soap_templates.py +0 -0
  41. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/helpers/adws_wrapper.py +0 -0
  42. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/pyproject.toml +0 -0
  43. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/requirements.txt +0 -0
  44. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/setup.cfg +0 -0
  45. {pyadrecon_adws-0.4.2 → pyadrecon_adws-0.4.4}/windows/README.md +0 -0
@@ -1,35 +1,35 @@
1
- ## [0.4.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.1...v0.4.2) (2026-02-21)
1
+ ## [0.4.4](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.3...v0.4.4) (2026-02-21)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * column sorting bug ([158ddfa](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/158ddfafe5f1d9ae8b72bafa6a9b393f9a1d067f))
6
+ * show detected cleartext pws in description/info fields ([bcdfc22](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/bcdfc223e00bd696b3145c1c146967eb48ebb629))
7
7
 
8
- ## [0.4.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.0...v0.4.1) (2026-02-21)
8
+ ## [0.4.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.2...v0.4.3) (2026-02-21)
9
9
 
10
10
 
11
11
  ### Bug Fixes
12
12
 
13
- * --no-dashboard ([3c0768a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/3c0768a2817c41c7eaa70534a31aa869b049b05a))
13
+ * add krbtgt rotation and protected users group to dashboard ([93d9e4b](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/93d9e4b36c6fb417549e805788db60099735fb09))
14
14
 
15
- ## [0.4.0](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.12...v0.4.0) (2026-02-21)
15
+ ## [0.4.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.1...v0.4.2) (2026-02-21)
16
16
 
17
17
 
18
- ### Features
18
+ ### Bug Fixes
19
19
 
20
- * html security dashboard generation ([05f72ec](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/05f72ec310f02e122ce7ecbd1118b31fa04eb296))
20
+ * column sorting bug ([158ddfa](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/158ddfafe5f1d9ae8b72bafa6a9b393f9a1d067f))
21
21
 
22
- ## [0.3.12](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.11...v0.3.12) (2026-02-20)
22
+ ## [0.4.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.0...v0.4.1) (2026-02-21)
23
23
 
24
24
 
25
25
  ### Bug Fixes
26
26
 
27
- * initialize sid mappings earlier to support individual --collect adcs runs ([e2ce483](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e2ce483ca44ad805bd1749808f3cc11ee958d5ce))
27
+ * --no-dashboard ([3c0768a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/3c0768a2817c41c7eaa70534a31aa869b049b05a))
28
28
 
29
- ## [0.3.11](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.10...v0.3.11) (2026-02-20)
29
+ ## [0.4.0](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.12...v0.4.0) (2026-02-21)
30
30
 
31
31
 
32
- ### Bug Fixes
32
+ ### Features
33
33
 
34
- * properly traverse sids and display child/parent domain names for adcs certificate templates ([3e8b113](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/3e8b113832ab66e3139a081344fdad0dd38af59d))
34
+ * html security dashboard generation ([05f72ec](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/05f72ec310f02e122ce7ecbd1118b31fa04eb296))
35
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.4.2
3
+ Version: 0.4.4
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,9 +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)
37
- - [HTML Dashboard](#html-dashboard)
36
+ - [HTML Dashboard](#html-dashboard)
37
+ - [Known Limitations](#known-limitations)
38
38
  - [Acknowledgements](#acknowledgements)
39
39
  - [License](#license)
40
40
 
@@ -125,37 +125,6 @@ There is also a Docker image available on GHCR.IO.
125
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
126
126
  ````
127
127
 
128
- ## Known Limitations
129
-
130
- ### Multi-Domain Forests - Certificate Templates
131
-
132
- When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates. This means:
133
-
134
- **Issue:**
135
- - Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
136
- - Only parent domain principals will appear in enrollment rights
137
- - This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
138
-
139
- **Example:**
140
- - Querying from child domain (`deham.domain.local`): Shows parent domain principals only
141
- - Querying from parent domain (`domain.local`): Shows all principals including child domain
142
-
143
- **Solution:**
144
- - For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC:
145
- ```bash
146
- # Instead of connecting to child DC:
147
- pyadrecon_adws.py -dc child-dc.deham.domain.local -d deham.domain.local ...
148
-
149
- # Connect to forest root DC:
150
- pyadrecon_adws.py -dc root-dc.domain.local -d domain.local ...
151
- ```
152
-
153
- **Warning:** PyADRecon-ADWS will display a warning when collecting certificate templates from a child domain:
154
- ```
155
- [WARNING] [!] Connected to child domain - certificate template ACLs may be incomplete!
156
- [WARNING] For complete ACL data, connect to forest root DC instead.
157
- ```
158
-
159
128
  ## Collection Modules
160
129
 
161
130
  As default, PyADRecon-ADWS runs all collection modules. They are referenced to as `default` or `all`.
@@ -227,7 +196,7 @@ You may disable HTML dashboard generation via `--no-dashboard`.
227
196
  >[!CAUTION]
228
197
  > This is a beta feature. Displayed data may be falsely parsed or reported as issue. Take it with a grain of salt!
229
198
 
230
- <img width="1209" height="500" alt="image" src="https://github.com/user-attachments/assets/e9500806-374d-4c69-a9a8-7f1540779266" />
199
+ <img width="1275" height="763" alt="image" src="https://github.com/user-attachments/assets/7a35849b-46f8-4bdb-b4c1-01b03d02963b" />
231
200
 
232
201
  <details>
233
202
  <img width="1318" height="927" alt="image" src="https://github.com/user-attachments/assets/0760056c-963d-48fb-a252-fd082862bb01" />
@@ -237,6 +206,52 @@ You may disable HTML dashboard generation via `--no-dashboard`.
237
206
  <img width="1253" height="569" alt="image" src="https://github.com/user-attachments/assets/b6c4f94b-9da3-4a55-808d-23036181d02b" />
238
207
  </details>
239
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
+
240
255
  ## Acknowledgements
241
256
 
242
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.2
3
+ Version: 0.4.4
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,9 +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)
37
- - [HTML Dashboard](#html-dashboard)
36
+ - [HTML Dashboard](#html-dashboard)
37
+ - [Known Limitations](#known-limitations)
38
38
  - [Acknowledgements](#acknowledgements)
39
39
  - [License](#license)
40
40
 
@@ -125,37 +125,6 @@ There is also a Docker image available on GHCR.IO.
125
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
126
126
  ````
127
127
 
128
- ## Known Limitations
129
-
130
- ### Multi-Domain Forests - Certificate Templates
131
-
132
- When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates. This means:
133
-
134
- **Issue:**
135
- - Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
136
- - Only parent domain principals will appear in enrollment rights
137
- - This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
138
-
139
- **Example:**
140
- - Querying from child domain (`deham.domain.local`): Shows parent domain principals only
141
- - Querying from parent domain (`domain.local`): Shows all principals including child domain
142
-
143
- **Solution:**
144
- - For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC:
145
- ```bash
146
- # Instead of connecting to child DC:
147
- pyadrecon_adws.py -dc child-dc.deham.domain.local -d deham.domain.local ...
148
-
149
- # Connect to forest root DC:
150
- pyadrecon_adws.py -dc root-dc.domain.local -d domain.local ...
151
- ```
152
-
153
- **Warning:** PyADRecon-ADWS will display a warning when collecting certificate templates from a child domain:
154
- ```
155
- [WARNING] [!] Connected to child domain - certificate template ACLs may be incomplete!
156
- [WARNING] For complete ACL data, connect to forest root DC instead.
157
- ```
158
-
159
128
  ## Collection Modules
160
129
 
161
130
  As default, PyADRecon-ADWS runs all collection modules. They are referenced to as `default` or `all`.
@@ -227,7 +196,7 @@ You may disable HTML dashboard generation via `--no-dashboard`.
227
196
  >[!CAUTION]
228
197
  > This is a beta feature. Displayed data may be falsely parsed or reported as issue. Take it with a grain of salt!
229
198
 
230
- <img width="1209" height="500" alt="image" src="https://github.com/user-attachments/assets/e9500806-374d-4c69-a9a8-7f1540779266" />
199
+ <img width="1275" height="763" alt="image" src="https://github.com/user-attachments/assets/7a35849b-46f8-4bdb-b4c1-01b03d02963b" />
231
200
 
232
201
  <details>
233
202
  <img width="1318" height="927" alt="image" src="https://github.com/user-attachments/assets/0760056c-963d-48fb-a252-fd082862bb01" />
@@ -237,6 +206,52 @@ You may disable HTML dashboard generation via `--no-dashboard`.
237
206
  <img width="1253" height="569" alt="image" src="https://github.com/user-attachments/assets/b6c4f94b-9da3-4a55-808d-23036181d02b" />
238
207
  </details>
239
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
+
240
255
  ## Acknowledgements
241
256
 
242
257
  Many thanks to the following folks:
@@ -12,9 +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)
17
- - [HTML Dashboard](#html-dashboard)
16
+ - [HTML Dashboard](#html-dashboard)
17
+ - [Known Limitations](#known-limitations)
18
18
  - [Acknowledgements](#acknowledgements)
19
19
  - [License](#license)
20
20
 
@@ -105,37 +105,6 @@ There is also a Docker image available on GHCR.IO.
105
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
106
106
  ````
107
107
 
108
- ## Known Limitations
109
-
110
- ### Multi-Domain Forests - Certificate Templates
111
-
112
- When querying **child domains** in a multi-domain forest, ADWS returns **incomplete security descriptors** for forest-wide objects like certificate templates. This means:
113
-
114
- **Issue:**
115
- - Certificate template ACLs (enrollment rights, write permissions) may not show principals from the **child domain itself**
116
- - Only parent domain principals will appear in enrollment rights
117
- - This is an ADWS protocol limitation, not a PyADRecon-ADWS bug
118
-
119
- **Example:**
120
- - Querying from child domain (`deham.domain.local`): Shows parent domain principals only
121
- - Querying from parent domain (`domain.local`): Shows all principals including child domain
122
-
123
- **Solution:**
124
- - For **complete certificate template ACL data**, connect to the **forest root domain controller** instead of a child DC:
125
- ```bash
126
- # Instead of connecting to child DC:
127
- pyadrecon_adws.py -dc child-dc.deham.domain.local -d deham.domain.local ...
128
-
129
- # Connect to forest root DC:
130
- pyadrecon_adws.py -dc root-dc.domain.local -d domain.local ...
131
- ```
132
-
133
- **Warning:** PyADRecon-ADWS will display a warning when collecting certificate templates from a child domain:
134
- ```
135
- [WARNING] [!] Connected to child domain - certificate template ACLs may be incomplete!
136
- [WARNING] For complete ACL data, connect to forest root DC instead.
137
- ```
138
-
139
108
  ## Collection Modules
140
109
 
141
110
  As default, PyADRecon-ADWS runs all collection modules. They are referenced to as `default` or `all`.
@@ -207,7 +176,7 @@ You may disable HTML dashboard generation via `--no-dashboard`.
207
176
  >[!CAUTION]
208
177
  > This is a beta feature. Displayed data may be falsely parsed or reported as issue. Take it with a grain of salt!
209
178
 
210
- <img width="1209" height="500" alt="image" src="https://github.com/user-attachments/assets/e9500806-374d-4c69-a9a8-7f1540779266" />
179
+ <img width="1275" height="763" alt="image" src="https://github.com/user-attachments/assets/7a35849b-46f8-4bdb-b4c1-01b03d02963b" />
211
180
 
212
181
  <details>
213
182
  <img width="1318" height="927" alt="image" src="https://github.com/user-attachments/assets/0760056c-963d-48fb-a252-fd082862bb01" />
@@ -217,6 +186,52 @@ You may disable HTML dashboard generation via `--no-dashboard`.
217
186
  <img width="1253" height="569" alt="image" src="https://github.com/user-attachments/assets/b6c4f94b-9da3-4a55-808d-23036181d02b" />
218
187
  </details>
219
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
+
220
235
  ## Acknowledgements
221
236
 
222
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
- Tools like Certipy or Certify identify vulnerable templates. Attackers request certificates with elevated permissions, then authenticate using the certificate to obtain TGTs or NTLM hashes.
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">
@@ -1028,6 +1090,16 @@ class DashboardGenerator:
1028
1090
  <i v-if="cleartextSortColumn === 'Name'" :class="cleartextSortDirection === 'asc' ? 'fas fa-sort-up' : 'fas fa-sort-down'" class="ml-1"></i>
1029
1091
  <i v-else class="fas fa-sort ml-1 opacity-30"></i>
1030
1092
  </th>
1093
+ <th @click="sortCleartext('Description')" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700">
1094
+ Description
1095
+ <i v-if="cleartextSortColumn === 'Description'" :class="cleartextSortDirection === 'asc' ? 'fas fa-sort-up' : 'fas fa-sort-down'" class="ml-1"></i>
1096
+ <i v-else class="fas fa-sort ml-1 opacity-30"></i>
1097
+ </th>
1098
+ <th @click="sortCleartext('Info')" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700">
1099
+ Info
1100
+ <i v-if="cleartextSortColumn === 'Info'" :class="cleartextSortDirection === 'asc' ? 'fas fa-sort-up' : 'fas fa-sort-down'" class="ml-1"></i>
1101
+ <i v-else class="fas fa-sort ml-1 opacity-30"></i>
1102
+ </th>
1031
1103
  <th @click="sortCleartext('AdminCount')" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700">
1032
1104
  Admin
1033
1105
  <i v-if="cleartextSortColumn === 'AdminCount'" :class="cleartextSortDirection === 'asc' ? 'fas fa-sort-up' : 'fas fa-sort-down'" class="ml-1"></i>
@@ -1039,6 +1111,14 @@ class DashboardGenerator:
1039
1111
  <tr v-for="user in usersWithPasswordsInInfo.slice(0, 50)" :key="user.UserName">
1040
1112
  <td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ user.UserName }}}}</td>
1041
1113
  <td class="px-6 py-4">{{{{ user.Name }}}}</td>
1114
+ <td class="px-6 py-4 text-sm">
1115
+ <span v-if="user.Description" class="text-red-600 dark:text-red-400 font-mono break-all">{{{{ user.Description }}}}</span>
1116
+ <span v-else class="text-gray-400">-</span>
1117
+ </td>
1118
+ <td class="px-6 py-4 text-sm">
1119
+ <span v-if="user.Info" class="text-red-600 dark:text-red-400 font-mono break-all">{{{{ user.Info }}}}</span>
1120
+ <span v-else class="text-gray-400">-</span>
1121
+ </td>
1042
1122
  <td class="px-6 py-4">
1043
1123
  <span v-if="user.AdminCount === '1'" class="badge badge-critical">Admin</span>
1044
1124
  <span v-else class="text-gray-500">-</span>
@@ -1064,9 +1144,13 @@ class DashboardGenerator:
1064
1144
  Compromised systems with readable LAPS passwords grant local administrator access, enabling credential dumping, persistence mechanisms, and lateral movement across the environment.
1065
1145
  </p>
1066
1146
  <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">
1147
+ <p class="text-indigo-700 dark:text-indigo-300 text-sm mb-3">
1068
1148
  Query AD attributes ms-Mcs-AdmPwd and ms-Mcs-AdmPwdExpirationTime. Tools: LAPSToolkit, PowerView. Use retrieved passwords for PSExec/WMI/RDP access.
1069
1149
  </p>
1150
+ <h3 class="font-semibold text-indigo-800 dark:text-indigo-200 mb-2">💡 Remediation</h3>
1151
+ <p class="text-indigo-700 dark:text-indigo-300 text-sm">
1152
+ <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.
1153
+ </p>
1070
1154
  </div>
1071
1155
  <div class="table-container">
1072
1156
  <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
@@ -1147,6 +1231,109 @@ class DashboardGenerator:
1147
1231
  </div>
1148
1232
  </div>
1149
1233
 
1234
+ <!-- KRBTGT Password Rotation -->
1235
+ <div id="krbtgt-section" v-if="krbtgtOldPassword.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
1236
+ <h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
1237
+ <i class="fas fa-crown text-red-600"></i> KRBTGT Password Rotation ({{{{ krbtgtOldPassword.length }}}})
1238
+ </h2>
1239
+ <div class="bg-red-50 dark:bg-red-900/20 border-l-4 border-red-500 p-4 mb-6">
1240
+ <h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">🎯 Issue & Impact</h3>
1241
+ <p class="text-red-700 dark:text-red-300 text-sm mb-3">
1242
+ 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.
1243
+ </p>
1244
+ <h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">⚔️ Attacker Benefit</h3>
1245
+ <p class="text-red-700 dark:text-red-300 text-sm mb-3">
1246
+ 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.
1247
+ </p>
1248
+ <h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">🔓 Exploitation Method</h3>
1249
+ <p class="text-red-700 dark:text-red-300 text-sm mb-3">
1250
+ 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.
1251
+ </p>
1252
+ <h3 class="font-semibold text-red-800 dark:text-red-200 mb-2">💡 Remediation</h3>
1253
+ <p class="text-red-700 dark:text-red-300 text-sm">
1254
+ <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.
1255
+ </p>
1256
+ </div>
1257
+ <div class="table-container">
1258
+ <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
1259
+ <thead>
1260
+ <tr>
1261
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Account Name</th>
1262
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Password Last Set</th>
1263
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Password Age (days)</th>
1264
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Risk</th>
1265
+ </tr>
1266
+ </thead>
1267
+ <tbody class="divide-y divide-gray-200 dark:divide-gray-700">
1268
+ <tr v-for="account in krbtgtOldPassword" :key="account['SAM Account Name'] || account.SAMAccountName || account.UserName || account.User">
1269
+ <td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ account['SAM Account Name'] || account.SAMAccountName || account.UserName || account.User || 'krbtgt' }}}}</td>
1270
+ <td class="px-6 py-4">{{{{ account['Password Last Set'] || account.PasswordLastSet || 'N/A' }}}}</td>
1271
+ <td class="px-6 py-4">
1272
+ <span :class="parseInt(account['Password Age (days)']) > 730 ? 'badge badge-critical' : 'badge badge-high'">
1273
+ {{{{ account['Password Age (days)'] }}}} days
1274
+ </span>
1275
+ </td>
1276
+ <td class="px-6 py-4">
1277
+ <span class="badge badge-critical">GOLDEN TICKET RISK</span>
1278
+ </td>
1279
+ </tr>
1280
+ </tbody>
1281
+ </table>
1282
+ </div>
1283
+ </div>
1284
+
1285
+ <!-- Unprotected Privileged Users -->
1286
+ <div id="protected-users-section" v-if="unprotectedPrivilegedUsers.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
1287
+ <h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
1288
+ <i class="fas fa-shield-alt text-teal-600"></i> Unprotected Privileged Users ({{{{ unprotectedPrivilegedUsers.length }}}})
1289
+ </h2>
1290
+ <div class="bg-teal-50 dark:bg-teal-900/20 border-l-4 border-teal-500 p-4 mb-6">
1291
+ <h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">🎯 Issue & Impact</h3>
1292
+ <p class="text-teal-700 dark:text-teal-300 text-sm mb-3">
1293
+ 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.
1294
+ </p>
1295
+ <h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">⚔️ Attacker Benefit</h3>
1296
+ <p class="text-teal-700 dark:text-teal-300 text-sm mb-3">
1297
+ 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.
1298
+ </p>
1299
+ <h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">🔓 Exploitation Method</h3>
1300
+ <p class="text-teal-700 dark:text-teal-300 text-sm mb-3">
1301
+ 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.
1302
+ </p>
1303
+ <h3 class="font-semibold text-teal-800 dark:text-teal-200 mb-2">💡 Remediation</h3>
1304
+ <p class="text-teal-700 dark:text-teal-300 text-sm">
1305
+ <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.
1306
+ </p>
1307
+ </div>
1308
+ <div class="table-container">
1309
+ <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
1310
+ <thead>
1311
+ <tr>
1312
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">SAM Account Name</th>
1313
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Name</th>
1314
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Status</th>
1315
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Last Logon</th>
1316
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase">Risk Level</th>
1317
+ </tr>
1318
+ </thead>
1319
+ <tbody class="divide-y divide-gray-200 dark:divide-gray-700">
1320
+ <tr v-for="user in unprotectedPrivilegedUsers" :key="user['SAM Account Name']">
1321
+ <td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ user['SAM Account Name'] }}}}</td>
1322
+ <td class="px-6 py-4">{{{{ user.Name || 'N/A' }}}}</td>
1323
+ <td class="px-6 py-4 text-sm">{{{{ user.Status || 'N/A' }}}}</td>
1324
+ <td class="px-6 py-4 text-sm">{{{{ user['Last Logon'] || 'Never' }}}}</td>
1325
+ <td class="px-6 py-4">
1326
+ <span v-if="user['Risk Level'] === 'CRITICAL' || user['Risk Level'] === 'Critical'" class="badge badge-critical">CRITICAL</span>
1327
+ <span v-else-if="user['Risk Level'] === 'HIGH' || user['Risk Level'] === 'High'" class="badge badge-high">HIGH</span>
1328
+ <span v-else-if="user['Risk Level'] === 'MEDIUM' || user['Risk Level'] === 'Medium'" class="badge badge-medium">MEDIUM</span>
1329
+ <span v-else class="badge badge-low">{{{{ user['Risk Level'] || 'LOW' }}}}</span>
1330
+ </td>
1331
+ </tr>
1332
+ </tbody>
1333
+ </table>
1334
+ </div>
1335
+ </div>
1336
+
1150
1337
  <!-- Password Policy Analysis -->
1151
1338
  <div id="password-policy-section" v-if="passwordPolicy.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
1152
1339
  <h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
@@ -1162,9 +1349,13 @@ class DashboardGenerator:
1162
1349
  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
1350
  </p>
1164
1351
  <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">
1352
+ <p class="text-orange-700 dark:text-orange-300 text-sm mb-3">
1166
1353
  Tools: Hydra, Medusa, CrackMapExec. Attackers enumerate users, spray common passwords, escalate with compromised credentials. No complexity = simple passwords work.
1167
1354
  </p>
1355
+ <h3 class="font-semibold text-orange-800 dark:text-orange-200 mb-2">💡 Remediation</h3>
1356
+ <p class="text-orange-700 dark:text-orange-300 text-sm">
1357
+ <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.
1358
+ </p>
1168
1359
  </div>
1169
1360
  <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
1170
1361
  <div v-for="policy in passwordPolicy" :key="policy.Policy"
@@ -1722,6 +1913,12 @@ class DashboardGenerator:
1722
1913
  forest() {{
1723
1914
  return csvData.Forest || [];
1724
1915
  }},
1916
+ krbtgt() {{
1917
+ return csvData.krbtgt || [];
1918
+ }},
1919
+ protectedGroups() {{
1920
+ return csvData.ProtectedGroups || [];
1921
+ }},
1725
1922
 
1726
1923
  aboutInfo() {{
1727
1924
  const about = csvData.AboutPyADRecon || [];
@@ -1850,6 +2047,24 @@ class DashboardGenerator:
1850
2047
  return csvData.LAPS ? csvData.LAPS.filter(l => l.Readable === 'True' || l.Readable === 'TRUE') : [];
1851
2048
  }},
1852
2049
 
2050
+ krbtgtOldPassword() {{
2051
+ return this.krbtgt.filter(k => {{
2052
+ const pwdAge = parseInt(k['Password Age (days)']);
2053
+ return !isNaN(pwdAge) && pwdAge > 180;
2054
+ }});
2055
+ }},
2056
+
2057
+ unprotectedPrivilegedUsers() {{
2058
+ return this.protectedGroups.filter(u => {{
2059
+ // Users not in Protected Users group with Risk Level > Low
2060
+ const notInProtectedUsers = u['In Protected Users Group'] === 'No' || u['In Protected Users Group'] === 'NO';
2061
+ const isUser = u.Type === 'User' || u.Type === 'USER';
2062
+ const riskLevel = (u['Risk Level'] || '').toUpperCase();
2063
+ const highRisk = riskLevel === 'MEDIUM' || riskLevel === 'HIGH' || riskLevel === 'CRITICAL';
2064
+ return isUser && notInProtectedUsers && highRisk;
2065
+ }});
2066
+ }},
2067
+
1853
2068
  lapsEnabled() {{
1854
2069
  return this.laps.filter(l => l['LAPS Enabled'] === 'True' || l['LAPS Enabled'] === 'TRUE');
1855
2070
  }},
@@ -2782,8 +2997,7 @@ class DashboardGenerator:
2782
2997
  with open(self.output_file, 'w', encoding='utf-8') as f:
2783
2998
  f.write(html_content)
2784
2999
 
2785
- print(f"[+] Dashboard generated: {self.output_file}")
2786
- print(f" Open it in your browser to view the interactive report")
3000
+ print(f"[INFO] [+] Dashboard generated: {self.output_file}")
2787
3001
  return True
2788
3002
 
2789
3003
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "version": "0.4.4"
3
+ }
@@ -77,7 +77,7 @@ except ImportError:
77
77
  DASHBOARD_AVAILABLE = False
78
78
 
79
79
  # Constants
80
- VERSION = "v0.4.2" # Automatically updated by CI/CD pipeline during release
80
+ VERSION = "v0.4.4" # Automatically updated by CI/CD pipeline during release
81
81
  BANNER = f"""
82
82
  ╔═══════════════════════════════════════════════════════════════════
83
83
  ║ PyADRecon-ADWS {VERSION} - Python AD Reconnaissance Tool (ADWS)
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.4.2"
3
- }
File without changes
File without changes