info: name: SAM File Access Control Check author: nukunga[SungHyunJeon] severity: medium description: | Ensure the SAM file (%SystemRoot%\system32\config\SAM) is secured so that only the Administrators and SYSTEM groups have full access.The presence of permissions for any other users or groups represents a potential security vulnerability. impact: | If users or groups besides Administrators and SYSTEM have access to the SAM file, attackers could exploit this to obtain sensitive password data, raising the risk of password-based attacks. remediation: | Revoke any permissions assigned to users or groups other than Administrators and SYSTEM by: - Running the command: > cacls %systemroot%\system32\config\SAM /remove:g [UserOrGroup] - Or by adjusting the permissions through File Explorer. reference: - https://isms.kisa.or.kr/main/csap/notice/?boardId=bbs_0000000000000004&mode=view&cntId=85 tags: sam,account-management,code,windows-audit,kisa