PyADRecon-ADWS 0.5.1__tar.gz → 0.5.2__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.5.1 → pyadrecon_adws-0.5.2}/CHANGELOG.md +7 -7
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PKG-INFO +1 -1
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PyADRecon_ADWS.egg-info/PKG-INFO +1 -1
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/dashboard_generator.py +50 -8
- pyadrecon_adws-0.5.2/package.json +3 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/pyadrecon_adws.py +1 -1
- pyadrecon_adws-0.5.1/package.json +0 -3
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.dockerignore +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.github/FUNDING.yml +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.github/pyadrecon.png +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.github/workflows/conventional-commits.yml +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.github/workflows/pypi.yml +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/.gitignore +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/Dockerfile +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/LICENSE +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/README.md +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/generate_test_data.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/__init__.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/__init__.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/adws.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/__init__.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/encoder.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/__init__.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/attributes.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/constants.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/datatypes.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/elements.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/record.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/text.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/records/utils.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/encoder/xml_parser.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/ms_nmf.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/ms_nns.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws/soap_templates.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/helpers/adws_wrapper.py +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/pyproject.toml +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/requirements.txt +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/setup.cfg +0 -0
- {pyadrecon_adws-0.5.1 → pyadrecon_adws-0.5.2}/windows/README.md +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.5.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.5.1...v0.5.2) (2026-02-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* rework Foreign Security Principals in Privileged Groups ([171019f](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/171019f50966e60662114ddc3201c07a54ead1c8))
|
|
7
|
+
|
|
1
8
|
## [0.5.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.5.0...v0.5.1) (2026-02-22)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -26,10 +33,3 @@
|
|
|
26
33
|
|
|
27
34
|
* rework protected users group ([0e850bd](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/0e850bdf0a30bf22f3f11ad60c87c8dc4f955b96))
|
|
28
35
|
|
|
29
|
-
## [0.4.12](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.11...v0.4.12) (2026-02-21)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* add support for --generate-dashboard-from ([7e6eb2b](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/7e6eb2b35dca62a0832a537f394d8dad42ed374f))
|
|
35
|
-
|
|
@@ -1973,19 +1973,19 @@ class DashboardGenerator:
|
|
|
1973
1973
|
<div class="bg-pink-50 dark:bg-pink-900/20 border-l-4 border-pink-500 p-4 mb-6">
|
|
1974
1974
|
<h3 class="font-semibold text-pink-800 dark:text-pink-200 mb-2">🎯 Issue & Impact</h3>
|
|
1975
1975
|
<p class="text-pink-700 dark:text-pink-300 text-sm mb-3">
|
|
1976
|
-
Foreign Security Principals (FSPs) represent accounts from external trusted domains. When present in privileged groups
|
|
1976
|
+
Foreign Security Principals (FSPs) represent accounts from external trusted domains. When present in privileged groups, they create cross-domain privilege escalation paths. Compromise of the trusted domain leads to compromise of the trusting domain through FSP memberships. Even parent-child domain trusts carry risk: if the forest root is compromised, all child domains are compromised.
|
|
1977
1977
|
</p>
|
|
1978
1978
|
<h3 class="font-semibold text-pink-800 dark:text-pink-200 mb-2">⚔️ Attacker Benefit</h3>
|
|
1979
1979
|
<p class="text-pink-700 dark:text-pink-300 text-sm mb-3">
|
|
1980
|
-
Attackers who compromise
|
|
1980
|
+
Attackers who compromise any trusted domain can leverage FSP memberships to gain privileged access in the trusting domain. This enables lateral movement across domain boundaries and forest-wide privilege escalation. Foreign admin accounts are often overlooked in security audits. CRITICAL findings indicate external domain access; HIGH indicates unexpected cross-domain access; MEDIUM indicates architectural forest trusts that still represent real risk.
|
|
1981
1981
|
</p>
|
|
1982
1982
|
<h3 class="font-semibold text-pink-800 dark:text-pink-200 mb-2">🔓 Exploitation Method</h3>
|
|
1983
1983
|
<p class="text-pink-700 dark:text-pink-300 text-sm mb-3">
|
|
1984
|
-
Tools: BloodHound, PowerView, ADExplorer. Attackers use domain trust relationships to authenticate as foreign principals. Once authenticated, they inherit all group memberships including privileged groups.
|
|
1984
|
+
Tools: BloodHound, PowerView, ADExplorer. Attackers use domain trust relationships to authenticate as foreign principals. Once authenticated, they inherit all group memberships including privileged groups. Parent domain compromise is particularly dangerous as it provides forest-wide administrative access. FSPs can be used for persistence even if trust is later broken.
|
|
1985
1985
|
</p>
|
|
1986
1986
|
<h3 class="font-semibold text-pink-800 dark:text-pink-200 mb-2">💡 Remediation</h3>
|
|
1987
1987
|
<p class="text-pink-700 dark:text-pink-300 text-sm">
|
|
1988
|
-
<strong>
|
|
1988
|
+
<strong>Prioritize by risk level:</strong> Address CRITICAL (external domains) and HIGH (unexpected cross-domain access) immediately. For MEDIUM findings (parent domain trusts), document and monitor, ensure forest root domain has strong security controls. Enable SID filtering on all external trusts. Use selective authentication on forest trusts. Implement tiered administration model. Regularly audit group memberships for foreign SIDs.
|
|
1989
1989
|
</p>
|
|
1990
1990
|
</div>
|
|
1991
1991
|
<div class="overflow-x-auto">
|
|
@@ -2021,7 +2021,9 @@ class DashboardGenerator:
|
|
|
2021
2021
|
</td>
|
|
2022
2022
|
<td class="px-6 py-4">
|
|
2023
2023
|
<span v-if="fsp['Risk Level'] === 'CRITICAL'" class="badge badge-critical">CRITICAL</span>
|
|
2024
|
-
<span v-else class="badge badge-high">HIGH</span>
|
|
2024
|
+
<span v-else-if="fsp['Risk Level'] === 'HIGH'" class="badge badge-high">HIGH</span>
|
|
2025
|
+
<span v-else-if="fsp['Risk Level'] === 'MEDIUM'" class="badge badge-medium">MEDIUM</span>
|
|
2026
|
+
<span v-else class="badge badge-low">LOW</span>
|
|
2025
2027
|
</td>
|
|
2026
2028
|
</tr>
|
|
2027
2029
|
</tbody>
|
|
@@ -3400,8 +3402,11 @@ class DashboardGenerator:
|
|
|
3400
3402
|
foreignSecurityPrincipals() {{
|
|
3401
3403
|
let foreignPrincipals = [];
|
|
3402
3404
|
|
|
3403
|
-
// Get current domain SID
|
|
3405
|
+
// Get current domain SID and name
|
|
3404
3406
|
let currentDomainSID = null;
|
|
3407
|
+
let currentDomainName = null;
|
|
3408
|
+
let forestRootDomain = null;
|
|
3409
|
+
|
|
3405
3410
|
if (this.users.length > 0) {{
|
|
3406
3411
|
const firstUserSID = this.users[0].SID;
|
|
3407
3412
|
if (firstUserSID) {{
|
|
@@ -3412,6 +3417,22 @@ class DashboardGenerator:
|
|
|
3412
3417
|
}}
|
|
3413
3418
|
}}
|
|
3414
3419
|
|
|
3420
|
+
// Get current domain name
|
|
3421
|
+
if (this.domain.length > 0) {{
|
|
3422
|
+
const domainEntry = this.domain.find(d => d.Category === 'Name');
|
|
3423
|
+
if (domainEntry) {{
|
|
3424
|
+
currentDomainName = domainEntry.Value.toLowerCase();
|
|
3425
|
+
}}
|
|
3426
|
+
}}
|
|
3427
|
+
|
|
3428
|
+
// Get forest root domain name
|
|
3429
|
+
if (this.forest.length > 0) {{
|
|
3430
|
+
const forestEntry = this.forest.find(f => f.Category === 'Name');
|
|
3431
|
+
if (forestEntry) {{
|
|
3432
|
+
forestRootDomain = forestEntry.Value.toLowerCase();
|
|
3433
|
+
}}
|
|
3434
|
+
}}
|
|
3435
|
+
|
|
3415
3436
|
if (!currentDomainSID) return [];
|
|
3416
3437
|
|
|
3417
3438
|
// Check privileged groups
|
|
@@ -3432,12 +3453,33 @@ class DashboardGenerator:
|
|
|
3432
3453
|
(!memberSID.startsWith(currentDomainSID) && memberSID.startsWith('S-1-5-21-')));
|
|
3433
3454
|
|
|
3434
3455
|
if (isForeignSID) {{
|
|
3456
|
+
// Extract foreign domain name
|
|
3457
|
+
let foreignDomain = null;
|
|
3458
|
+
if (memberSID.startsWith('ForeignSecurityPrincipal:')) {{
|
|
3459
|
+
foreignDomain = memberSID.replace('ForeignSecurityPrincipal:', '').toLowerCase();
|
|
3460
|
+
}}
|
|
3461
|
+
|
|
3462
|
+
// Determine risk level based on domain trust and privileges
|
|
3463
|
+
let riskLevel;
|
|
3464
|
+
const memberName = member['Member Name'] || member['Member UserName'];
|
|
3465
|
+
const isFromForestRoot = foreignDomain && forestRootDomain && foreignDomain === forestRootDomain;
|
|
3466
|
+
|
|
3467
|
+
// Risk assessment:
|
|
3468
|
+
// - Parent domain (forest root): MEDIUM - architectural by design, but parent compromise = child compromise
|
|
3469
|
+
// - External domain with admin group: CRITICAL - unexpected cross-domain privileged access
|
|
3470
|
+
// - External domain with non-admin group: HIGH - unexpected cross-domain access
|
|
3471
|
+
if (isFromForestRoot) {{
|
|
3472
|
+
riskLevel = 'MEDIUM'; // Trust-based risk: parent domain compromise affects child
|
|
3473
|
+
}} else {{
|
|
3474
|
+
riskLevel = groupName.includes('Admin') ? 'CRITICAL' : 'HIGH'; // External domain = critical issue
|
|
3475
|
+
}}
|
|
3476
|
+
|
|
3435
3477
|
foreignPrincipals.push({{
|
|
3436
3478
|
'Group Name': groupName,
|
|
3437
|
-
'Member Name':
|
|
3479
|
+
'Member Name': memberName,
|
|
3438
3480
|
'Member SID': memberSID,
|
|
3439
3481
|
'Account Type': member.AccountType,
|
|
3440
|
-
'Risk Level':
|
|
3482
|
+
'Risk Level': riskLevel
|
|
3441
3483
|
}});
|
|
3442
3484
|
}}
|
|
3443
3485
|
}});
|
|
@@ -77,7 +77,7 @@ except ImportError:
|
|
|
77
77
|
DASHBOARD_AVAILABLE = False
|
|
78
78
|
|
|
79
79
|
# Constants
|
|
80
|
-
VERSION = "v0.5.
|
|
80
|
+
VERSION = "v0.5.2" # 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
|
|
File without changes
|
|
File without changes
|