Skip to content

feat(openaev): tag imported payload samples as malware samples (#522) - #523

Open
SamuelHassine wants to merge 1 commit into
mainfrom
issue/522-openaev-malware-sample
Open

feat(openaev): tag imported payload samples as malware samples (#522)#523
SamuelHassine wants to merge 1 commit into
mainfrom
issue/522-openaev-malware-sample

Conversation

@SamuelHassine

Copy link
Copy Markdown
Member

The openaev collector imports community payloads whose sample ships as an 'infected'-password zip; it unzips to plaintext and uploads via document upsert. This tags those uploads with document_kind = MALWARE_SAMPLE so OpenAEV re-encrypts them at rest and the implant decrypts on the fly before detonation.

Pairs with OpenAEV-Platform/openaev#6842 and OpenAEV-Platform/implant#164.

Test plan

  • Run the openaev collector import and confirm the payload sample document is stored encrypted (document_encrypted = true).

Copilot AI review requested due to automatic review settings July 21, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the openaev collector’s payload import path to explicitly tag imported payload sample documents as document_kind = MALWARE_SAMPLE, so the OpenAEV backend stores them encrypted at rest (and the implant can decrypt them just-in-time).

Changes:

  • Set document["document_kind"] = "MALWARE_SAMPLE" before document upsert for imported payload documents.
  • Add an inline comment explaining why samples are treated as malware (encryption-at-rest behavior).

Comment on lines +109 to +111
# Community payload samples are malware: OpenAEV re-encrypts them at
# rest as a password-protected archive and the implant decrypts them
# on the fly before detonation.
# Community payload samples are malware: OpenAEV re-encrypts them at
# rest as a password-protected archive and the implant decrypts them
# on the fly before detonation.
document["document_kind"] = "MALWARE_SAMPLE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants