Notice // Official Self-Hosted Code Mirror
My GitHub profile (@shehzade) is temporarily suspended due to an automated false-positive on open-source Active Directory security tool releases and is currently under official reinstatement review by GitHub Support. This mirror provides verified source code, file trees, commit logs, and release binaries directly from local git repositories. All codebases and research are also available upon request (contact me). Direct GitHub repository links will be restored once the account is unsuspended.

contraband

Multi-protocol network egress assessment and DLP verification framework.
git clone https://shehzade.io/repos/contraband.git
Log | Files | Refs | README | LICENSE
↓ Download Source ZIP git clone https://shehzade.io/repos/contraband.git

ModeNameSize
-rw-r--r--.gitignore33L
-rw-r--r--LICENSE201L
-rw-r--r--Makefile80L
-rw-r--r--README.md295L
-rw-r--r--cmd/contraband-client/main.go271L
-rw-r--r--cmd/contraband-server/main.go307L
-rw-r--r--cmd/contraband-soak/main.go134L
-rw-r--r--cmd/contraband/cmd_client.go225L
-rw-r--r--cmd/contraband/cmd_generate.go138L
-rw-r--r--cmd/contraband/cmd_listen.go95L
-rw-r--r--cmd/contraband/cmd_report.go132L
-rw-r--r--cmd/contraband/cmd_server.go265L
-rw-r--r--cmd/contraband/cmd_soak.go132L
-rw-r--r--cmd/contraband/cmd_sweep.go137L
-rw-r--r--cmd/contraband/cmd_version.go29L
-rw-r--r--cmd/contraband/dryrun.go34L
-rw-r--r--cmd/contraband/main.go5L
-rw-r--r--cmd/contraband/root.go74L
-rw-r--r--docs/images/cli-client-assessment.png678995B
-rw-r--r--docs/images/cli-server-lifecycle.png434746B
-rw-r--r--docs/images/dashboard-live-overview.png156688B
-rw-r--r--docs/images/dashboard-protocol-port-matrix.png176675B
-rw-r--r--docs/images/dashboard-synchronized-reports.png145132B
-rw-r--r--docs/images/standalone-html-report.png134657B
-rw-r--r--docs/wiki/Command-Center-HUD.md85L
-rw-r--r--docs/wiki/Home.md37L
-rw-r--r--docs/wiki/Installation-and-Build.md69L
-rw-r--r--docs/wiki/Protocols-Reference.md86L
-rw-r--r--docs/wiki/Proxy-Traversal-and-Evasion.md81L
-rw-r--r--docs/wiki/Quickstart-Guide.md185L
-rw-r--r--docs/wiki/Soak-Testing-and-Benchmarks.md69L
-rw-r--r--docs/wiki/Synthetic-DLP-Verification.md59L
-rw-r--r--go.mod45L
-rw-r--r--go.sum125L
-rw-r--r--pkg/client/client.go279L
-rw-r--r--pkg/client/dlp/cloud_keys.go164L
-rw-r--r--pkg/client/dlp/credit_card.go230L
-rw-r--r--pkg/client/dlp/entropy.go111L
-rw-r--r--pkg/client/dlp/generator.go44L
-rw-r--r--pkg/client/dlp/hipaa.go253L
-rw-r--r--pkg/client/dlp/pii.go88L
-rw-r--r--pkg/client/dlp/procedural.go140L
-rw-r--r--pkg/client/dlp/ssn.go120L
-rw-r--r--pkg/client/dlp/stream.go185L
-rw-r--r--pkg/client/evasion/carrier.go80L
-rw-r--r--pkg/client/evasion/chunker.go263L
-rw-r--r--pkg/client/evasion/compression.go106L
-rw-r--r--pkg/client/evasion/crypto.go91L
-rw-r--r--pkg/client/evasion/encoders.go30L
-rw-r--r--pkg/client/evasion/pipeline.go289L
-rw-r--r--pkg/client/evasion/polyglot_jpeg_zip.go165L
-rw-r--r--pkg/client/evasion/polyglot_pdf_jar.go130L
-rw-r--r--pkg/client/evasion/stego_bmp.go164L
-rw-r--r--pkg/client/evasion/stego_png.go258L
-rw-r--r--pkg/client/evasion/stego_wav.go174L
-rw-r--r--pkg/client/exfil/cloud/aws.go344L
-rw-r--r--pkg/client/exfil/cloud/azure.go278L
-rw-r--r--pkg/client/exfil/cloud/gcp.go281L
-rw-r--r--pkg/client/exfil/covert/icmp.go224L
-rw-r--r--pkg/client/exfil/covert/mqtt.go297L
-rw-r--r--pkg/client/exfil/covert/ntp.go221L
-rw-r--r--pkg/client/exfil/covert/syslog.go265L
-rw-r--r--pkg/client/exfil/dns/dns_a.go210L
-rw-r--r--pkg/client/exfil/dns/dns_txt.go202L
-rw-r--r--pkg/client/exfil/dns/doh.go256L
-rw-r--r--pkg/client/exfil/dns/dot.go256L
-rw-r--r--pkg/client/exfil/exfiltrator.go107L
-rw-r--r--pkg/client/exfil/file/ftp.go197L
-rw-r--r--pkg/client/exfil/file/ftps.go201L
-rw-r--r--pkg/client/exfil/file/sftp.go227L
-rw-r--r--pkg/client/exfil/mail/smtp.go380L
-rw-r--r--pkg/client/exfil/smb/smb_auth.go234L
-rw-r--r--pkg/client/exfil/smb/smb_framing.go94L
-rw-r--r--pkg/client/exfil/smb/smb_messages.go162L
-rw-r--r--pkg/client/exfil/smb/smb_quic.go218L
-rw-r--r--pkg/client/exfil/smb/smb_tcp.go547L
-rw-r--r--pkg/client/exfil/tls_masquerade.go438L
-rw-r--r--pkg/client/exfil/web/grpc.go255L
-rw-r--r--pkg/client/exfil/web/http1.go333L
-rw-r--r--pkg/client/exfil/web/http2.go235L
-rw-r--r--pkg/client/exfil/web/http3.go236L
-rw-r--r--pkg/client/exfil/web/webdav.go286L
-rw-r--r--pkg/client/exfil/web/websocket.go265L
-rw-r--r--pkg/client/proxy/auth_basic.go11L
-rw-r--r--pkg/client/proxy/auth_digest.go138L
-rw-r--r--pkg/client/proxy/auth_kerberos.go135L
-rw-r--r--pkg/client/proxy/auth_ntlm.go337L
-rw-r--r--pkg/client/proxy/buffered_conn.go29L
-rw-r--r--pkg/client/proxy/fallback.go291L
-rw-r--r--pkg/client/proxy/http_connect.go407L
-rw-r--r--pkg/client/proxy/pac.go392L
-rw-r--r--pkg/client/proxy/proxy.go177L
-rw-r--r--pkg/client/proxy/socks5.go309L
-rw-r--r--pkg/client/proxy/windows.go39L
-rw-r--r--pkg/client/proxy/windows_other.go16L
-rw-r--r--pkg/client/proxy/wpad.go190L
-rw-r--r--pkg/client/stage_dlp.go61L
-rw-r--r--pkg/client/stage_evasion.go30L
-rw-r--r--pkg/client/stage_exfil.go209L
-rw-r--r--pkg/client/stage_proxy.go21L
-rw-r--r--pkg/client/stage_scoring.go337L
-rw-r--r--pkg/client/stage_shaping.go32L
-rw-r--r--pkg/client/stage_sweep.go50L
-rw-r--r--pkg/client/sweep/probes.go146L
-rw-r--r--pkg/client/sweep/rate.go130L
-rw-r--r--pkg/client/sweep/sweeper.go201L
-rw-r--r--pkg/client/sweep/tcp.go190L
-rw-r--r--pkg/client/sweep/udp.go194L
-rw-r--r--pkg/client/traffic/cadence.go180L
-rw-r--r--pkg/client/traffic/pool.go190L
-rw-r--r--pkg/client/traffic/profiles.go275L
-rw-r--r--pkg/client/traffic/shaper.go326L
-rw-r--r--pkg/client/traffic/wrappers.go218L
-rw-r--r--pkg/common/config.go458L
-rw-r--r--pkg/common/constants.go255L
-rw-r--r--pkg/common/errors.go104L
-rw-r--r--pkg/common/evidence.go137L
-rw-r--r--pkg/common/logger.go246L
-rw-r--r--pkg/common/models.go517L
-rw-r--r--pkg/common/ports.go96L
-rw-r--r--pkg/common/units.go183L
-rw-r--r--pkg/dryrun/dryrun.go242L
-rw-r--r--pkg/report/html.go115L
-rw-r--r--pkg/report/json.go352L
-rw-r--r--pkg/report/remediation.go365L
-rw-r--r--pkg/report/report.go286L
-rw-r--r--pkg/report/scoring.go228L
-rw-r--r--pkg/report/serve.go266L
-rw-r--r--pkg/report/templates/dashboard.html1304L
-rw-r--r--pkg/report/templates/embed.go8L
-rw-r--r--pkg/server/certgen/ca.go196L
-rw-r--r--pkg/server/certgen/ssh.go59L
-rw-r--r--pkg/server/certgen/tls.go64L
-rw-r--r--pkg/server/listeners/dns_server.go441L
-rw-r--r--pkg/server/listeners/ftp_server.go435L
-rw-r--r--pkg/server/listeners/grpc_server.go259L
-rw-r--r--pkg/server/listeners/http_server.go580L
-rw-r--r--pkg/server/listeners/icmp_server.go190L
-rw-r--r--pkg/server/listeners/listener.go16L
-rw-r--r--pkg/server/listeners/mqtt_server.go331L
-rw-r--r--pkg/server/listeners/ntp_server.go200L
-rw-r--r--pkg/server/listeners/registry.go89L
-rw-r--r--pkg/server/listeners/sftp_server.go281L
-rw-r--r--pkg/server/listeners/smb_quic_server.go251L
-rw-r--r--pkg/server/listeners/smb_server.go585L
-rw-r--r--pkg/server/listeners/smtp_server.go441L
-rw-r--r--pkg/server/listeners/syslog_server.go348L
-rw-r--r--pkg/server/listeners/ws_server.go159L
-rw-r--r--pkg/server/live/dashboard.html2677L
-rw-r--r--pkg/server/live/events.go151L
-rw-r--r--pkg/server/live/hub.go402L
-rw-r--r--pkg/server/live/metrics.go787L
-rw-r--r--pkg/server/live/server.go394L
-rw-r--r--pkg/server/multiplexer/demux.go82L
-rw-r--r--pkg/server/multiplexer/multiplexer.go433L
-rw-r--r--pkg/server/multiplexer/port_safety.go178L
-rw-r--r--pkg/server/multiplexer/redirector_linux.go80L
-rw-r--r--pkg/server/multiplexer/redirector_other.go35L
-rw-r--r--pkg/server/multiplexer/reflector.go153L
-rw-r--r--pkg/server/server.go718L
-rw-r--r--pkg/server/state.go56L
-rw-r--r--pkg/server/state/ledger.go88L
-rw-r--r--pkg/server/state/memory_ledger.go693L
-rw-r--r--pkg/server/state/reassembly.go69L
-rw-r--r--pkg/server/state/sqlite_ledger.go810L
-rw-r--r--pkg/soak/logger.go154L
-rw-r--r--pkg/soak/matrix.go253L
-rw-r--r--pkg/soak/memory.go146L
-rw-r--r--pkg/soak/negative.go149L
-rw-r--r--pkg/soak/runner.go194L
-rw-r--r--pkg/soak/soak.go463L
-rw-r--r--proto/exfil.pb.go260L
-rw-r--r--proto/exfil.proto26L
-rw-r--r--proto/exfil_grpc.pb.go153L