Skip to content

Add McAfee Endpoint Security ATP JSON parser#1640

Draft
EarthGrob wants to merge 5 commits intofox-it:mainfrom
EarthGrob:mcafee
Draft

Add McAfee Endpoint Security ATP JSON parser#1640
EarthGrob wants to merge 5 commits intofox-it:mainfrom
EarthGrob:mcafee

Conversation

@EarthGrob
Copy link
Copy Markdown

Add McAfee Endpoint Security ATP JSON parser

Extending the mcafee plugin with a function that parses the JSON files at path sysvol/ProgramData/McAfee/Endpoint Security/ATP.

Changes

  • Added path support for ATP JSON files: sysvol/ProgramData/McAfee/Endpoint Security/ATP.
  • Created a new record descriptor McAfeeAtpRemediationRecord to structure the parsed data and preserve the raw JSON for forensic context.
  • Added the atp() export to the McAfeePlugin.
  • Implemented strict noise filtering in _iter_remediation_entries() to ensure only entries with actual threat identifiers (e.g., AlertID, ThreatName) are yielded, discarding generic software statuses.
  • Implemented robust timestamp parsing (_parse_atp_timestamp()) to safely handle epoch time in seconds, milliseconds, and microseconds.
  • Added comprehensive unit tests in test_mcafee.py covering successful extraction, noise filtering, timestamp boundaries, and graceful handling of malformed JSON.

How to test:
Run the included unit tests via:
pytest tests/plugins/apps/av/test_mcafee.py -v

Issue

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.

McAfee Endpoint Security ATP parser

1 participant