Add EICAR test file send via --eicar flag - #82
Closed
steffenfritz wants to merge 1 commit into
Closed
Conversation
Adds a new -e/--eicar flag that sends the EICAR test string as an email attachment (eicar.com) to the target mail server on port 25. The server's response (accepted/rejected) is reported. The EICAR string is assembled at runtime from two parts to avoid false-positive AV detection in the binary. Closes #37 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Steffen Fritz <steffen@fritz.wtf>
Owner
Author
|
Closing this PR. In practice, mxcheck runs on workstations or laptops with residential IP addresses, which are blocked by most mail servers before the DATA phase — regardless of content. The EICAR string never reaches the AV filter. Sending from a real MTA account would require SMTP auth support, which is a separate, larger feature. Closing in favor of a more focused discussion in #37. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-e/--eicarflag that sends the EICAR standard test string as an email attachment (eicar.com) to the target mail server on port 25Notes
--mailfrom/--mailtoflags for sender and recipientTest plan
mxcheck -s <domain> -e -nagainst a known test server and verify the "EICAR AV Test" section appears in outputaccepted by serveris reported when the server accepts the DATA commandrejected by serverand the server response are reported when the server rejects during DATAgo vet ./...andgo test -v ./...— all greenCloses #37
🤖 Generated with Claude Code