Skip to content

Commit

Permalink
Update encrypt-data-using-dpapi.yml rule (#900)
Browse files Browse the repository at this point in the history
* Update encrypt-data-using-dpapi.yml rule
  • Loading branch information
jtothej authored May 21, 2024
1 parent 7128cdb commit 7f8216f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data-manipulation/encryption/dpapi/encrypt-data-using-dpapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ rule:
- api: crypt32.CryptUnprotectData
- api: System.Security.Cryptography.ProtectedData::Unprotect
- api: System.Security.Cryptography.ProtectedData::Protect
- api: SystemFunction040
- api: SystemFunction041
- and:
- match: link function at runtime on Windows
- or:
# RtlEncryptMemory is available as SystemFunction040 export in Advapi32.dll
# CryptProtectMemory is a wrapper function for SystemFunction040
- string: "SystemFunction040"
# RtlDecryptMemory is available as SystemFunction041 export in Advapi32.dll
# CryptUnprotectMemory is a wrapper function for SystemFunction041
- string: "SystemFunction041"

0 comments on commit 7f8216f

Please sign in to comment.