Dataset
Shell command datasets from sysadmin sessions for AI training
A shell command dataset built from administrator sessions is a set of recorded command-line sessions on production and internal systems, each kept with every command, its output, timing and the ticket or change the session was opened for. SourceX sources these to a buyer's specification from established enterprises, hosting providers and managed service providers that record privileged access for audit. Each dataset is de-identified and licensed for an agreed permitted use. Buyers should specify how typed or echoed secrets, customer data in output and operator identities are removed.
Dataset manifest
Sourced to your spec- What it is
- Recorded administrator terminal sessions with commands, output, timing and the access reason or ticket
- Typical systems
- CyberArk, BeyondTrust, Teleport, AWS Systems Manager Session Manager, HashiCorp Boundary, tlog, sudo I/O logging, auditd
- Typical history
- Specified by the buyer; set by the holder's audit retention for session recordings
- Modality
- Timed terminal text with parsed commands and structured access and ticket metadata
- Delivery formats
- Agreed per order; JSONL with one session per record, plus the timed stream as asciicast where wanted
- Preparation
- Secrets, customer data in output, operator names and hostnames removed or replaced; you specify the detection method
- Licensing
- Permitted use agreed per license; staff recording notice and rights over sessions on customer systems reviewed per source
- Availability
- Sourced to your spec from enterprises, hosting and managed service providers; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| recording_id | string | Pseudonymous ID for one recorded session on one target. |
| access_request | object | The stated reason for access, the ticket or change reference, how that link was made, the approver's role and any emergency flag. |
| target | object | Host role, tier, operating system, shell and the account the session ran as. |
| capture | object | Recording tool and method, whether keystroke input was recorded, terminal size and the native format. |
| commands | array | Each command line as executed, in order, with start offset and, where recorded, working directory and exit status. |
| output_chunks | array | Terminal output keyed to the command that produced it, with a truncation flag and control sequences stripped or kept. |
| raw_stream | object | Reference to the original timed terminal stream, for replay or re-segmentation. |
| interactive_segments | array | Spans inside editors, pagers, database clients and other full-screen programs, with what was recovered, such as a file diff. |
| privilege_changes | array | Each sudo or su transition with the time and the account switched to. |
| hops | array | Onward connections from the session, such as SSH to another host or a shell in a container, linked to their recordings. |
| file_changes | array | Files the session modified, with a diff where file audit or configuration management captured one. |
| session_result | object | How the session ended and its length, with the linked ticket's closure code and resolution note. |
| phase_labels | array | Optional span labels for diagnose, change, verify and back out, with who or what applied them. |
| scrubbing | object | Which secrets, customer data and identities were removed or replaced, and how. |
Field names from the table above; values are masked placeholders.
Example record
{
"recording_id": "rec_b81d27",
"access_request": {
"ticket": "INC-[T_5531]",
"reason": "Disk usage alarm on database primary",
"link": "validated_by_access_tool",
"approver_role": "dba_on_call"
},
"target": {
"host_role": "postgres_primary",
"tier": "production",
"shell": "bash",
"login_as": "[OP_14]"
},
"capture": {
"method": "terminal_io_and_exec_audit",
"input_recorded": false,
"tool_format": "asciicast"
},
"commands": [
{
"n": 1,
"t": 4.2,
"cmd": "df -h /var/lib/postgresql",
"exit": 0
},
{
"n": 2,
"t": 19.8,
"cmd": "du -sh /var/log/postgresql",
"exit": 0,
"label": "dead_end"
},
{
"n": 3,
"t": 48.6,
"cmd": "sudo du -sh /var/lib/postgresql/16/main/pg_wal",
"exit": 0
},
{
"n": 4,
"t": 92.0,
"cmd": "psql -c \"select slot_name, active from pg_replication_slots\"",
"exit": 2
},
{
"n": 5,
"t": 104.5,
"cmd": "sudo -u postgres psql -c \"select slot_name, active from pg_replication_slots\"",
"exit": 0
},
{
"n": 6,
"t": 171.3,
"cmd": "sudo -u postgres psql -c \"select pg_drop_replication_slot('[SLOT_OLD_STANDBY]')\"",
"exit": 0,
"label": "change"
},
{
"n": 7,
"t": 240.9,
"cmd": "sudo -u postgres psql -c checkpoint; df -h /var/lib/postgresql",
"exit": 0,
"label": "verify"
}
],
"output_chunks": [
{
"n": 1,
"text": "/dev/mapper/vg0-pgdata 500G 489G 11G 98% /var/lib/postgresql"
},
{
"n": 3,
"text": "278G\t/var/lib/postgresql/16/main/pg_wal"
},
{
"n": 4,
"text": "psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: FATAL: role \"[OP_14]\" does not exist"
},
{
"n": 5,
"text": " [SLOT_OLD_STANDBY] | f\n [SLOT_DR] | t"
},
{
"n": 7,
"text": "CHECKPOINT\n/dev/mapper/vg0-pgdata 500G 212G 288G 43% /var/lib/postgresql"
}
],
"privilege_changes": [
{
"t": 48.6,
"to": "root",
"via": "sudo"
},
{
"t": 104.5,
"to": "postgres",
"via": "sudo"
}
],
"session_result": {
"ended": "closed_by_operator",
"duration_s": 263,
"ticket_closure": "resolved",
"ticket_note": "Inactive replication slot was retaining WAL. Dropped."
},
"scrubbing": {
"operator": "pseudonymized",
"secrets_found": 0,
"customer_data_in_output": "none"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train terminal agents on operations work
A stated reason, the commands run and the ticket outcome form a task, a trajectory and a result from real infrastructure.
Teach caution before destructive commands
Sessions show the checks operators make first, such as confirming the host or trying a dry run, and what they do when a change goes wrong.
Predict the next command from output
Commands paired with what the terminal printed let a model learn to read untidy output before choosing the next step.
Evaluate diagnosis on held-out sessions
Given the symptom and the output so far, an agent's next diagnostic step can be compared with the operator's and with the recorded fix.
Check runbooks against practice
Repeated sessions for the same alarm show the steps operators run in practice, including ones the runbook lacks.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Validated ticket link
A ticket reference checked by the access tool is stronger than a free-text reason typed at login.
Output joined to commands
Each command has its own output span, not one undivided terminal stream.
Exit status and timing
Exit codes and per-command timing show which steps failed and where the operator paused.
Failures kept
Failed commands, abandoned lines and rolled-back sessions are present and labeled.
Editor sessions resolved
Edits made in full-screen editors come with a file diff, not only terminal redraw bytes.
Human work separated
Interactive sessions are told apart from automation that used the same access path.
Call to transcript
Shell command dataset
Why audit recordings come with a task and an outcome
A shell history file is a list of command lines. It has no output and no exit status, it carries timestamps only when the shell was configured to write them, and because history is normally written when a shell exits, concurrent sessions interleave or overwrite each other. Nothing in it says what the operator was trying to do or whether it worked.
Recordings made for audit start from an access request. In a privileged access management tool an operator asks for a target system and gives a reason, often a ticket or change number that the tool checks against the ticketing system, and an approver grants a time window. The session is stored against that request. So each recording arrives with a task statement written before the work began, and the linked ticket holds what came after: resolved, rolled back or escalated. That is an instruction, a trajectory and an outcome with no annotation step. The link varies in quality. A reason can be a bare ticket number, one ticket can cover several sessions, and emergency access is often justified after the fact.
Capture method decides what the record contains. Terminal I/O recorders store the byte stream the operator saw, with timing. Output is there, but commands are not delimited, so the stream has to be segmented at prompts, and it carries control sequences, backspaces and tab completion. Command audit, such as kernel audit records of each program execution, gives the exact arguments but no output, and it logs every child process a script started. The strongest sources hold both and join them. Ask whether keystroke input was captured too. Input capture picks up passwords typed at prompts that do not echo, which is why some recorders leave it off by default.
Why detours, mistakes and back-outs are the point
Scripted terminal tasks run in a clean container with one goal state. An operator on a live system works differently. Much of a session is read-only inspection of status, logs, disk and processes. Hypotheses are tried and dropped. Commands fail on a typo or a permission error and are run again under sudo. A careful operator checks which host the prompt names before a destructive command, tries a dry-run flag first, copies a configuration file before editing it and backs the change out when it makes things worse.
Those detours are what a terminal agent most needs and what synthetic tasks omit: when to stop, how to test a guess cheaply and how to recover. A transcript cleaned of failed commands has lost them. Failure is also harder to read than a status code suggests. A grep that matches nothing exits nonzero, a pipeline reports only its last command's status unless the shell is set otherwise, and a line the operator typed and then canceled appears in the terminal stream but never in an execution audit. Specify that nonzero exit statuses, canceled command lines and sessions that ended in a rollback or escalation are kept.
The same realism sets limits. The machine's state was not captured, so a session is an observation of work, not an environment. Full-screen programs are the hardest part: an edit in a terminal editor is recorded as screen-painting bytes, and the resulting file change has to be rebuilt by terminal emulation or taken from file audit or configuration management. Output is where customer data appears, in a query result or a log line. Recorders also capture automation that connects over the same SSH path, which should be flagged or excluded.
What to check before licensing
- Ask which capture method produced each recording, terminal stream, command audit or both, and whether exit status and working directory were recorded or inferred from the output.
- Test secret removal on the sample by searching for credential patterns and high-entropy strings in command lines, environment dumps, printed key files and connection strings. Ask whether keystroke input was ever captured.
- Check how customer data in output was found and removed, including database query results, log lines with email addresses and listings of customer directories.
- Confirm that operator names are pseudonymized everywhere they appear, including shell prompts, home directory paths and file ownership columns.
- Ask how staff and contractors were told that sessions are recorded, such as a login banner or signed policy, and have counsel check that the notice and local employment rules allow this use.
- Ask how each session was tied to its ticket, and what share of sessions have a ticket with a closure code.
- For hosting and managed service providers, confirm that their customer agreements permit licensing sessions run on customer systems.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
How is this different from shell history files?
A history file holds command lines only, while an audit recording holds the session. The recording adds the terminal output, timing, the account and host, and the access request that states why the operator connected. History files also miss commands typed inside other programs, and the user can edit or clear them.
Can the sessions be replayed in a sandbox?
No, not as a reproducible environment. The recording holds what was typed and printed, not the machine's disks, services or data, so running the same commands elsewhere gives different output. The timed stream can be played back for viewing. If you need executable tasks, treat the sessions as source material for building environments.
Which shells and platforms are covered?
That depends on the holder, so state it in your spec. The most common material is bash or sh on Linux over SSH. Holders may also record PowerShell sessions, network device command lines, database clients and shells opened inside containers. Graphical remote desktop sessions are typically stored as video and are a different kind of dataset.
How are secrets and customer data removed from output?
Usually by pattern and entropy scanning followed by review of a sample, and the method used should be recorded for the dataset. Secrets show up as command-line arguments, exported variables, printed configuration files and pasted tokens. Customer data shows up in query results and log lines. No method catches everything, so ask for the detection rules used and read a sample yourself.
Were the operators told they were being recorded?
That has to be confirmed for each source. Organizations that record privileged sessions usually say so in an access policy and often in a login banner, so ask which the holder used. Whether that notice covers licensing the recordings for AI development is a separate question that depends on the policy wording and local employment law, so have counsel review it per source.
Are failed commands and aborted sessions kept?
Yes, if you ask for them, and you should. Typos, permission errors, wrong guesses and rolled-back changes are much of what separates this data from scripted tasks. Specify that nothing is filtered for success, that exit statuses are kept where recorded, and that sessions whose ticket ended in escalation or rollback are included and labeled.
Related datasets
- Coding agent session traces on private repositories
Session logs of AI coding agents on private repositories, joined to the human verdict on each result
- Computer-use trajectories and action-labeled screen recordings
Screen recordings of employees doing real tasks, with synchronized input events, interface state and verified outcomes
- Endpoint management and patching logs
Deployment jobs with per-device results, script runs with output, compliance evaluations and remote session records
- Network device configurations with change history
Versioned device configurations with per-revision diff, author, timestamp, linked change ticket and rollback markers
- IT service management and incident histories
Incidents, problems, changes and requests with work notes, CI links and outcomes
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.