Sign inSign up

natecbh/fileless-maltest

By natecbh

β€’Updated about 1 year ago

EICAR Memory Injection Test

Image
Security
0

173

natecbh/fileless-maltest repository overview

β πŸ”¬ EICAR Memory Injection Test Container

This container provides a secure sandbox environment to test memory-based EICAR injection against real-time security solutions (AV/EDR/HIPS). It simulates in-memory process injection using Linux /proc/[pid]/mem interface and validates if your security stack can detect such behavior.


⁠πŸ§ͺ What It Does

This tool performs:

  • πŸ“‚ Launching a benign process (sleep 60)
  • πŸ—ΊοΈ Mapping its memory layout via /proc/[pid]/maps
  • πŸ’‰ Injecting the EICAR⁠ test string into writable memory regions
  • πŸ” Verifying the injection by reading memory back
  • ⏰ Waiting for detection (e.g., AV alerts, EDR flags)

β πŸš€ Usage

β πŸ”§ Prerequisites
  • Docker must be installed
  • Container must be run with --privileged (to access /proc/[pid]/mem)
⁠▢️ Run the Container
docker run --rm -it --privileged \
  --name eicar-injector \
  natecbh/fileless-maltest:1.0

⁠🐚 Inside the Container

Once inside, the script will:

  1. Launch a dummy target process (sleep 60)
  2. Analyze writable memory regions
  3. Attempt to inject EICAR string into selected memory region
  4. Verify injection by reading back the data
  5. Pause for 15 seconds to allow detection by AV/EDR/HIPS

You will be prompted before injection begins.


β πŸ›‘οΈ Security Expectations

Detection LayerExpected Behavior
βœ… AntivirusShould detect EICAR signature in memory
βœ… EDRShould alert on process injection behavior
βœ… HIPSShould block unauthorized memory write
βœ… Behavioral AIShould flag memory tampering anomalies

⁠⚠️ Disclaimer

This container is intended for legitimate security testing purposes only.

  • The EICAR test string is not malicious β€” it is a standard harmless AV test signature.
  • Do not run this container on production systems.
  • Use only in isolated test environments (e.g., VM, sandbox).

β πŸ” Technical Notes

  • The script relies on sleep as a benign target process.
  • It uses /proc/[pid]/maps and /proc/[pid]/mem for memory introspection and writing.
  • You must run with root privileges inside the container.

Tag summary

Content type

Image

Digest

sha256:84772187e…

Size

21.3 MB

Last updated

about 1 year ago

docker pull natecbh/fileless-maltest:2.0