fix missing MasterKey arg

This commit is contained in:
Lee Chagolla-Christensen
2025-10-10 19:05:48 -07:00
parent bbbdc5b4d8
commit a0fa19236b
2 changed files with 4 additions and 1 deletions
@@ -12,7 +12,7 @@ from common.state_helpers import get_file_enriched
from common.storage import StorageMinio
from dapr.clients import DaprClient
from file_enrichment_modules.module_loader import EnrichmentModule
from nemesis_dpapi import DpapiManager, MasterKey
from nemesis_dpapi import DpapiManager, MasterKey, UserAccountType
from pypykatz.pypykatz import pypykatz
if TYPE_CHECKING:
@@ -241,6 +241,7 @@ class LsassDumpParser(EnrichmentModule):
mk = MasterKey(
guid=UUID(str(cred.key_guid)),
user_account_type=UserAccountType.UNKNOWN,
plaintext_key=masterkey_bytes,
plaintext_key_sha1=sha1_masterkey_bytes,
)
@@ -31,6 +31,7 @@ from nemesis_dpapi import (
Password,
Pbkdf2Hash,
Sha1Hash,
UserAccountType,
)
from nemesis_dpapi.eventing import (
DpapiEvent,
@@ -245,6 +246,7 @@ async def _handle_master_key_guid_pairs(dpapi_manager: DpapiManager, request: Ma
masterkey = MasterKey(
guid=masterkey_guid,
user_account_type=UserAccountType.UNKNOWN,
plaintext_key=masterkey_data,
plaintext_key_sha1=SHA1.new(masterkey_data).digest(),
)