feat: add quiet feature flag to suppress install output#2246
Merged
hulto merged 1 commit intospellshift:mainfrom Apr 16, 2026
Merged
feat: add quiet feature flag to suppress install output#2246hulto merged 1 commit intospellshift:mainfrom
hulto merged 1 commit intospellshift:mainfrom
Conversation
Add a `quiet` compile-time feature flag for imix that replaces the default StdoutPrinter with a NoopPrinter during `./imix install`, silencing all Eldritch print/eprint output from embedded tomes. Usage: cargo build --release --bin imix --features quiet
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
quietcompile-time Cargo feature flag to imix that suppresses all Eldritchprint/eprintoutput during./imix installNoopPrinterineldritch-core, aPrinterimplementation that silently discards all output, following the same pattern asStdoutPrinterandBufferPrinter--features quietis enabled, the install interpreter usesNoopPrinterinstead ofStdoutPrinter, so embedded tomes run silently with no terminal outputDuring
./imix install, embedded tomes (e.g.install_service/main.eldritch) print status messages to stdout via the defaultStdoutPrinter. Imix install stdout might expose how the underlying functionality of the tomes operates for blue teamers if they exfil the imix binary and run it in a sandbox offline. Debug statements are nice to have within the tomes themselves for troubleshooting, but having a functionality at compile-time to go and discard all output would be nice for running./imix installin prod quickly without having to comment out all of the debug statements in the eldritch files themselves.This is a compile-time opt-in (
quietis not in the default feature set), so existing builds are unaffected.Files Changed
implants/lib/eldritch/eldritch-core/src/interpreter/printer.rs— addNoopPrinterimplants/lib/eldritch/eldritch-core/src/interpreter/mod.rs— re-exportNoopPrinterimplants/lib/eldritch/eldritch-core/src/lib.rs— re-exportNoopPrinterimplants/lib/eldritch/eldritch/src/lib.rs— re-exportNoopPrinterimplants/imix/Cargo.toml— addquietfeatureimplants/imix/src/install.rs— gate printer selection onquietfeature