Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› EICAR String
Cyber Security

EICAR String

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Cyber Security

The EICAR String is a harmless test file used to check whether antivirus and endpoint security tools detect known malware patterns. It contains a standard byte sequence that triggers alerts without carrying malicious code, so defenders can verify scanning, quarantine and incident response workflows safely.

What the EICAR String Is for

The EICAR String exists so defenders can test whether antivirus and endpoint protection tools recognise a known malware signature without using real malware. It gives security teams a safe, repeatable way to confirm that detection, quarantine and alerting are functioning as intended.

How the EICAR Test Works

The string is a standardised byte sequence that most security products are designed to flag on sight. Because it is inert, it can be downloaded, copied or transferred during validation exercises without creating the operational and legal risk that comes with live malicious code.

In practice, the test is useful because it checks the full handling path, not just a detection engine. A tool may scan files correctly, but the real question is whether it also raises the right alert, isolates the object, preserves the event for review and behaves consistently across endpoints and gateways.

Where It Fits in Defensive Assurance

The EICAR String is best understood as a control validation artefact, not as a threat sample. Teams use it to verify that endpoint security settings, mail filters, web protections and file-scanning workflows are active after rollout, policy changes or platform upgrades.

It is also a useful training object because it creates a clear distinction between a positive detection and a true incident. That matters for security operations, where analysts need to recognise that an EICAR alert is expected behaviour and still confirm that triage, logging and escalation logic are working.

Limitations and Safe Use

The EICAR String only proves that a product can detect that specific test pattern. It does not prove that the control will stop modern malware families, malicious scripts, living-off-the-land activity or novel evasive techniques, so it should be used as one validation point rather than a complete security assessment.

Teams should also remember that safe handling still matters. If the test is introduced into production environments without coordination, it can trigger noisy alerts, automated containment actions or unnecessary incident tickets, even though the content itself is harmless.

Risk and Threat Considerations

The main risk is false confidence, or the mistaken belief that successful EICAR detection means endpoint protection is broadly effective. It only verifies one known pattern and one part of the defensive stack, so it can mask gaps in policy, tuning, logging or response if treated as a blanket assurance check.

Failure mechanism: A security team sees the test fire and assumes broader malware coverage is healthy, while real threats that use obfuscation, script execution, or non-signature techniques may still pass through undetected.

Impact: Organisations may leave detection blind spots untested, misjudge control maturity, or discover only during a real intrusion that alerting and response were never validated against more realistic attack behaviour.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-3 — Malicious Code ProtectionEICAR validates malicious code detection and response handling controls.
SI-4 — System MonitoringEICAR is used to confirm alerting, logging, and monitoring workflows.
Recommendation — Test SI-3 detection, quarantine, and response handling using the EICAR String. Verify SI-4 telemetry by ensuring EICAR events are logged and surfaced to operations.
CIS Controls v8CIS-10 — Malware DefensesThe EICAR String is a standard test for malware defense controls.
CIS-8 — Audit Log ManagementEICAR testing depends on observable logging and reviewable alert records.
Recommendation — Validate malware-defense coverage by using EICAR to confirm detection and containment behavior. Confirm EICAR events are recorded in audit logs and available for review.
NIST CSF 2.0DE.CM-01 — Monitoring for Security EventsEICAR verifies whether security events are detected and surfaced by monitoring.
PR.DS-10 — Integrity ChecksEICAR supports validation that security controls and integrity protections are functioning.
Recommendation — Use EICAR to validate that security monitoring detects and reports known malware patterns. Check that protective controls reliably flag the EICAR test file during routine assurance.

Practitioner Guidance

Why practitioners should care: Use the EICAR String to validate that detection, quarantine and alerting are enabled, but treat the result as a narrow control check rather than a security verdict. It is most valuable when it is part of a wider assurance routine that includes configuration review, logging verification and response testing.

What to watch for: Confirm that the expected alert appears, the object is handled consistently, and the event is visible to the teams or platforms that should see it. If any of those steps fail, the problem is often in policy enforcement, telemetry or workflow integration rather than in the test file itself.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org