Skip to content

Remove hardcoded EICAR detection, move to signature database #58

@derekxmartin

Description

@derekxmartin

Summary

The built-in EICAR detection in src/engine.cpp (line ~130) hardcodes the EICAR test string prefix check at the engine layer. This was added as a temporary workaround so --eicar-test passes without a loaded .akavdb.

Problem

  • AV engines should not hardcode detection signatures in source code
  • EICAR should be detected via its MD5/SHA256 hash in the signature database like any other malware
  • The hardcoded check bypasses the entire scan pipeline (bloom, hash match, etc.)

Solution

  1. Add EICAR MD5/SHA256 to the default .akavdb built by akavdb-tool
  2. Ensure install.ps1 deploys a minimal .akavdb containing at least the EICAR signature
  3. Remove the hardcoded EICAR prefix check from src/engine.cpp
  4. Remove the duplicate check from src/scanner.cpp (Stage 0)

Files to modify

  • src/engine.cpp — remove built-in EICAR block
  • src/scanner.cpp — remove Stage 0 EICAR block
  • tools/akavdb-tool/ — add EICAR entry to default DB build
  • scripts/install.ps1 — ensure minimal .akavdb is deployed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions