Send an AI tool only the log fields the question depends on: event time, event type, outcome, and pseudonymous actor and asset references. Remove or replace direct identifiers, credentials, network addresses, query strings and free-text payloads. Run a four-pass redaction review, record what was removed, and confirm the destination is cleared for that data class.
Start from the question, not the log
Write the question in one sentence before you open the export. An analyst who asks why a service account failed authentication after a password rotation needs a different slice of data than one who asks whether a host contacted an unfamiliar destination. The question decides which fields matter. Anything the question does not depend on stays out of the excerpt, even when it sits on the same line.
The question also decides whether an assistant is the right place for the work. Reading a short sequence of events to draft a handover note is a different task from asking a tool to interpret a day of authentication data across many accounts. Large volumes usually add more exposure than analytic gain, and the review effort grows with each line added. Keep excerpts small enough that one reviewer can read each line before it is sent.
Confirm the destination before choosing fields
Classify the destination first. The questions that matter are whether the tool retains prompts, who can read them, whether your organization has an agreement that covers the data class in the excerpt, and where the content is processed. Those answers belong in one place in your control set. If they are missing, the excerpt is not cleared for that destination, and the analyst should escalate rather than assume. Teams that keep a documented control set for AI use can tie each destination to the controls described in AI governance and risk controls.
The minimum field set for a log excerpt
Most questions can be answered with a small, fixed set of fields. Use the same names and order for every excerpt so a reviewer can compare one with another.
- Event time, in a single time zone written with its offset. Mixed zones are a common reason an analysis gets the sequence wrong.
- Event type and source, such as an authentication event from a directory service or a deny from a perimeter device.
- Outcome, meaning the success, failure or error code exactly as the source records it.
- Action category, such as a privileged role assignment, rather than the full object path.
- Actor reference, a stable pseudonym that maps to the account in your own register.
- Asset reference, a stable pseudonym for the host, container or service.
- Sequence number, an ordinal that keeps the order visible after lines are dropped.
Add a field only when the question depends on it. If the analyst needs to know whether an account holds an administrative role, supply a role category next to the actor reference rather than the account name next to its role.
Fields to remove, replace or summarize
Many fields that look harmless carry identifiers or content. Go through each field in the source and assign it one of three treatments: remove it, replace it with a pseudonym, or summarize it in a neutral phrase.
- Direct identifiers: user names, email addresses, employee numbers, phone numbers and full names. Replace them with the actor reference.
- Network addresses: client and server addresses, hardware addresses and internal host names that reveal a site or business unit. Replace them with asset references. If the question concerns the direction of traffic, keep a direction label such as inbound or outbound.
- Credentials: passwords, tokens, session identifiers, keys, cookies and any header carrying an authorization value. Remove them entirely, because a partial value still helps someone who is guessing.
- URLs: keep the host category and the path pattern, and drop query parameters, which often carry identifiers or tokens.
- Free text and payloads: request bodies, message subjects, command arguments and script contents. Summarize them in one neutral phrase that states what ran and whether it succeeded.
- Customer and case content: ticket descriptions, case notes, and customer or project names embedded in object names.
A summary must not change the meaning of the line. If a command is replaced with a phrase such as script executed, the phrase should still name the script category and the result. Mark each summarized line with the tag [summarized] so the reviewer can see that a substitution was made and check it against the original.
Run the redaction review in four passes
An automated scan catches only the patterns someone wrote for it. Run the four passes below in order, and record who completed each one.
- Pattern scan. Search for email formats, address formats, long random strings, the words password, token, key and secret, and the names of your internal domains. Treat each hit as a candidate for review, not as a confirmed leak.
- Full read. A person reads each line as an outsider would. Look for indirect identifiers, such as a rare job title, an unusual site, a project code name or a timestamp that matches a public announcement.
- Consistency check. Confirm that each pseudonym refers to the same entity throughout the excerpt and that two entities do not share one token. A broken mapping makes the answer wrong, and a reused token can reveal a link you meant to hide.
- Re-identification check. Ask whether someone holding only the excerpt could name the account, host or customer. If the answer is yes, remove more fields and return to the full read.
Write the redaction record before anything is sent
Keep a short record with each excerpt. It should name the question the excerpt serves, the destination and its classification, the fields kept, the fields removed or summarized by category, the reviewer and the date. A later reviewer can test the excerpt against the record without returning to the original export. The record also answers the question of what left the environment if someone asks afterwards. Store it in the case file, not in the assistant’s chat history.
Where the destination is an approved assistant, the approval should follow the rules in the acceptable use policy for generative AI tools, which sets out who may send which data classes. If the record may later serve as evidence, store it under the same retention and access rules used for audit evidence handling.
Final checks before the excerpt leaves your hands
Run a short checklist, and treat any unchecked item as a stop. The reviewer should be able to answer yes to each item without opening the original export.
- The excerpt contains only the fields the question depends on.
- No credential, network address, direct identifier or query string remains.
- Each summarized line carries its tag and its category.
- The destination matches the classification written in the record.
- A second person has read the record, not only the excerpt.
When sensitive content has already been pasted
If unredacted content has already reached an assistant, treat it as a security event to triage rather than a private mistake. Record what was sent, when, to which tool and under which account. Check whether the content contained credentials. Any credential found should be treated as exposed and rotated under your normal procedure. Hand the record to the people who run your security operations and incident response process, because they decide whether notification is needed.
Do not delete the conversation as the first step. Preserve it under your retention rules, then follow the deletion and export options set by the owner of that tool. Deleting first can remove the evidence the review needs.
Decide when an assistant is the wrong route
Some excerpts should stay out of an assistant even after redaction. Examples include content under a legal hold, regulated personal data sent to a destination without an agreement that covers it, and logs from systems whose owners have not agreed to outside analysis. In those cases, use an analysis tool already approved for the data class, or review the excerpt inside your own environment. A redacted excerpt still reflects the original system, so the rule applies to the content class, not only to the fields you can see.
For help planning this work, see AI and ML services.
Questions about sharing security logs with AI tools
What is the difference between a pseudonym and a hash?
A pseudonym is a token you assign from a register that only your team can read. A hash is computed from the original value, so anyone who can guess that value can compute the same hash and match it. For identifiers drawn from a small set, such as employee numbers, an unkeyed hash offers little protection. A keyed hash, with the key held by your team, or a register-based token is the safer choice.
Does removing network addresses make an excerpt safe to share?
Not on its own. Timestamps, rare object names, sequence patterns and unusual combinations of outcome codes can point to a particular system or person. Removing the address is one step in the review. The re-identification check is what tells you whether the rest of the excerpt still identifies something.
Can an analyst keep the original values while working with the redacted excerpt?
Yes, if the mapping from tokens to original values stays in the case file under restricted access. Do not paste the mapping table into the assistant. Keeping the mapping separate from the excerpt lets the analysis be checked against the original without the original leaving your environment.
Who should approve an excerpt before it is sent?
The owner of the log source should approve the fields that come from that source. Where the excerpt contains personal data, your privacy contact should approve the redaction record as well. Approvers check the excerpt against the destination classification, not against their own reading of the question.