IT, Cybersecurity, Software and Analytics Agents

Give the on-call team a fast, careful colleague, not an unsupervised administrator.

BeginnerIntermediateExpert · 12 min read · Last updated:

In short

Technology teams can use agents to triage tickets, gather evidence, search runbooks, propose fixes, write code for review and answer data questions. Actions should come from a catalog with risk grades, limits, approvals and verification. Keep access least-privilege, treat logs and alerts as untrusted input and never give a model an open shell on production.

What you will learn: uses across service desk, operations, security, software and analytics, how to govern remediation, how attackers may target operational agents and how to measure real improvement.
Prerequisites: Tool Permissions, Approvals and Abuse Risks and Debugging Agents, RAG and Handoffs.

Versions used

The example runs in November 2026 with Python 3.13 and only the standard library. It decides what would be allowed and executes nothing on any system. Action names and limits are invented.

Beginner Where agents help

Uses by team

TeamGood early useLater, with controls
Service deskClassify tickets, suggest articlesReset access through verified workflow
Operations and reliabilityCollect metrics, logs and recent changesRun tested, reversible remediations
SecurityEnrich alerts, draft timelinesContain with approval
Software deliveryExplain code, write tests, propose changesOpen pull requests under review
Data and analyticsFind datasets, draft queriesScheduled checked reports

Software development agents have their own guides: Coding Agent Architecture and Code Understanding and Sandboxes, Safety and Security for Coding Agents. Data agents are covered in Data Agents and AI Data Analysts.

The service desk

Many requests are repetitive: access, passwords, devices, software. An agent can collect details, check entitlement, start the standard workflow and report status. Identity checks matter greatly, because attackers have long targeted help desks by pretending to be locked-out employees. Do not let conversational persuasion replace verification. Account recovery and changes to sign-in factors deserve strong, separate proof and notification to the account holder.

Incident assistance

Alertsignal
Gatherevidence
Suggestcause, fix
Approveon call
Verifyor undo

A useful assistant lists what it checked, what it found and what it could not access. It separates observation ("error rate rose at 10:02, after a release at 10:00") from hypothesis ("the release may be the cause"). Correlation in time is a lead, not proof.

Intermediate Governed actions

The action catalog

Define each permitted operation as a named, tested procedure with parameters, not as free-form commands.

FieldExample
Name and purposeRestart one worker to clear a stuck queue
Allowed targetsNamed services, one instance at a time
PreconditionsHealthy peers; no active change freeze
Blast radius limitAt most a quarter of instances
Rate limitA few automatic runs per hour
ApprovalNone, on call, or two people
VerificationSignals that must recover
RollbackHow to reverse or what to do instead

A policy gate for remediation

The gate decides whether a proposed action runs, waits for approval or is blocked.

"""Tiered remediation: what an operations agent may run by itself."""

ACTIONS = {
    "read_logs": dict(tier="read", reversible=True),
    "restart_worker": dict(tier="safe", reversible=True),
    "scale_out": dict(tier="safe", reversible=True),
    "rollback_release": dict(tier="guarded", reversible=True),
    "delete_volume": dict(tier="forbidden", reversible=False),
}
MAX_SHARE = 0.25          # most of a service one automatic action may touch
MAX_AUTO_PER_HOUR = 2


def decide(action, share, auto_count, approved_by=None):
    spec = ACTIONS.get(action)
    if spec is None:
        return "block", "action not in catalog"
    if spec["tier"] == "forbidden":
        return "block", "never run by the agent"
    if spec["tier"] == "read":
        return "run", "read-only diagnosis"
    if approved_by:
        return "run", f"approved by {approved_by}"
    if spec["tier"] == "guarded":
        return "ask", "change needs on-call approval"
    if share > MAX_SHARE:
        return "ask", f"would touch {share:.0%} of the service"
    if auto_count >= MAX_AUTO_PER_HOUR:
        return "ask", "repeated fixes suggest the cause is not understood"
    return "run", "within automatic limits"


incident = [
    ("read_logs", 0.0, None),
    ("restart_worker", 0.10, None),
    ("restart_worker", 0.10, None),
    ("restart_worker", 0.10, None),
    ("rollback_release", 1.0, None),
    ("rollback_release", 1.0, "on-call engineer"),
    ("delete_volume", 0.05, "on-call engineer"),
    ("run_shell", 0.05, None),
]
auto = 0
for action, share, approver in incident:
    verdict, why = decide(action, share, auto, approver)
    if verdict == "run" and not approver and ACTIONS[action]["tier"] == "safe":
        auto += 1
    print(f"{action:17} {verdict:5} {why}")

Output:

read_logs         run   read-only diagnosis
restart_worker    run   within automatic limits
restart_worker    run   within automatic limits
restart_worker    ask   repeated fixes suggest the cause is not understood
rollback_release  ask   change needs on-call approval
rollback_release  run   approved by on-call engineer
delete_volume     block never run by the agent
run_shell         block action not in catalog

Reading logs is allowed. Two restarts run, and the third asks because repeating a fix suggests the cause is not understood. Rollback waits for approval and runs once it is given. Deleting storage is never available to the agent, and an unlisted shell command is refused. A real gate would verify who approved, bind approval to the exact action and target, expire it, check live preconditions, enforce limits across all agents and confirm the result afterward. It must also be enforced by the platform's permissions, so that going around the gate fails.

Runbooks as knowledge and as code

  • Give each runbook an owner, last test date and the systems it applies to.
  • Turn safe, frequent steps into scripts in version control with tests.
  • Let the agent select and explain; let the script execute.
  • Flag stale runbooks and conflicts for repair.
  • Never execute instructions merely because they appear in a wiki page or ticket.

Security operations

Agents can add context to alerts: asset owner, recent sign-ins, known indicators, similar past cases. They can draft timelines and queries. Containment such as isolating a host or disabling an account can stop an attack and can also halt the business, so grade it and keep a fast approval path. The NIST Cybersecurity Framework offers a structure for functions, and MITRE ATT&CK a shared vocabulary for observed techniques. Use these tools only on systems you are authorized to defend.

Expert Hostile input, access and measures

Your telemetry can be hostile

Log lines, user agent strings, file names, email subjects, ticket text and repository content can be written by an attacker. A line that reads like an instruction may reach a model that holds powerful tools. Defenses:

  • Separate agents that read untrusted content from those that can act.
  • Pass structured findings between them, validated against a schema.
  • Require approval for actions triggered by untrusted content.
  • Restrict network egress so data cannot be sent out.
  • Redact secrets before content reaches a model or its logs.
  • Test with planted instructions in a safe environment (Red Teaming and Incident Response).

Access design

PrinciplePractice
Own identityEach agent is distinguishable from people and other agents
Short-lived rightsCredentials issued per task and expired
Read by defaultWrite access added per catalog action
Just-in-time elevationApproval grants narrow rights briefly
Protected recordsAgent cannot alter its own audit trail
Break glassPeople can act and disable the agent if it fails

An operations agent with broad administrator rights becomes one of the most valuable targets you own (Agent Identity, Authorization and Secrets).

Avoid circular dependencies

If the agent helps recover the network, identity system or model gateway it depends on, it may be unavailable exactly when needed. Keep human runbooks, offline documentation and access paths that do not require the agent. Include agent failure in recovery drills (High Availability and Disaster Recovery).

Change management

Agent actions are changes. Record them in the same system as human changes, respect freeze windows, link each to an incident or request and review automatic actions regularly. Changes to the catalog, prompts, models or permissions need their own review and tests, since they alter what can happen in production (CI/CD, Infrastructure as Code and Safe Releases).

Analytics requests

For questions about data, give read-only access through governed views, apply row and column permissions of the user, limit cost and runtime, show the query and definitions used and flag ambiguous terms. A correct query for the wrong definition of "active customer" produces a confident wrong answer (Safe SQL, Permissions and Evaluation, Semantic Layers and Business Metrics for AI).

Evaluating an operations agent

  1. Collect past incidents with confirmed causes and good actions.
  2. Replay them with only the information available at the time.
  3. Score evidence found, correct cause, safe proposal and clear admission of uncertainty.
  4. Inject misleading signals, missing data and hostile text.
  5. Run advisory mode during real incidents and compare.
  6. Automate one narrow action at a time.

Past incidents can leak into training material or retrieval, so check that success is not merely recall of the written postmortem.

Measures

MeasureCaution
Time to acknowledge and restoreCompare similar severity; small samples mislead
Suggestions accepted and correctAcceptance without checking is not accuracy
Incidents caused or worsenedReport every one
Repeat incidentsQuick restarts can hide causes
Tickets reopenedClosure is not resolution
On-call load and alert noiseAsk the people carrying it
Illustrative scenario

An agent clears a full disk by deleting old files, including logs needed for a security investigation. A catalog that offered only approved rotation with retention rules, and no general delete, would have preserved them. This scenario is invented.

Ticket triage that helps

Classification is a modest task with real value, and it is easy to measure. Give the agent the category list with definitions and examples, ask for a category, urgency, affected service and the evidence for each, and allow "unsure". Route unsure and high-urgency tickets to a person at once. Compare against the category recorded at closure, not the first guess of a rushed agent or user. Watch for security reports hidden in ordinary requests, such as "my mouse moves on its own," and give those a fast path.

CheckWhy
Urgent tickets rated lowThe costly error
Reassignments between teamsShows poor routing
Accuracy by language and channelFinds uneven service
New categories appearingList needs updating

Software delivery support

In build and release work, an agent can explain a failed pipeline, find the change that introduced a test failure and propose a patch. Keep the same gates for its changes as for anyone's: review, tests, scanning and staged release. Do not give the job that reads pull request text access to deployment secrets. Be careful with suggested dependencies, which may not exist or may be malicious; allow only vetted sources (Code Review, Refactoring and Quality Measures, Agent Threat Model and OWASP Agentic Risks).

Evidence an on-call engineer can trust

During an incident, attention is scarce. Present a short summary first, then evidence with links and times, then proposed actions with their risk. State what was not checked. Mark stale or partial data clearly. If the agent's view changes, show what new fact changed it. Let the engineer stop the investigation, add a fact or reject a hypothesis, and make sure the agent respects that for the rest of the incident (Progress, Approval, Undo and Handoff UX).

Cost and noise

An agent triggered by every alert can spend heavily and flood channels. Group related alerts, set a budget for each investigation, stop when evidence stops changing and post one updating thread rather than many messages. Review which alerts led to no action and fix or remove them, since an agent that summarizes noise efficiently has not reduced it (Agent Decisions: Confidence, Stopping, Loops and Budgets).

A staged path to automation

StageAgent mayMove on when
1. ObserveRead and summarizeEvidence is accurate and complete
2. RecommendPropose cataloged actionsProposals match expert choices and no unsafe ones appear
3. Act with approvalRun after a person confirmsVerification and rollback work in practice
4. Act within limitsRun selected actions aloneOwner reviews results regularly

Move one action at a time, and allow it to move back. An incident, a major platform change or a new model is reason to return an action to approval until it is proven again (Autonomy Levels and Human Oversight).

Access requests

Granting access is a good example of dividing duties. The agent can understand the request, identify the right role, check that the requester is eligible and prepare the ticket. The resource owner approves. The identity system grants, with an expiry where possible. The agent confirms the result and records it. It never approves its own proposals, never grants broader roles because a user insists it is urgent and never adds itself to a group. Urgent access follows the emergency procedure your organization already has, with review afterward.

Learning from each incident

After an incident, record what the agent suggested, which suggestions were used, what it missed and whether it saved or wasted time. Turn confirmed findings into runbook changes, new preconditions or test cases. Review near misses where the gate blocked something harmful: they show how close the system came and whether the proposal logic needs work.

Common mistakes

MistakeConsequenceInstead
Open shell or admin tokenUnlimited damageAction catalog and scoped rights
Auto-remediation without verificationFalse sense of recoveryCheck signals and stop
Endless retries of a fixCause hidden, harm repeatedRate limits and escalation
Trusting alert and log textInjection leading to actionsSeparate reading from acting
Weak help desk identity checksAccount takeoverStrong verification outside chat
Agent needed for its own recoveryLonger outageIndependent manual path

Checklist

  • Every action is cataloged with limits, approval and verification.
  • Permissions are enforced by the platform, not only prompts.
  • Destructive operations are unavailable to agents.
  • Untrusted telemetry cannot directly trigger actions.
  • Identity recovery uses strong verification.
  • Actions appear in change and audit records.
  • Humans can operate and disable without the agent.
  • Replay tests and advisory runs precede automation.

Frequently asked questions

Which remediation can run without approval?

Only narrow, reversible, well-tested actions with limited reach and automatic verification, chosen by the service owner and reviewed over time.

Can an agent respond to a security attack automatically?

Some predefined containment can, where the owner accepts the disruption risk. Broader or irreversible responses should have a quick human decision.

How do we stop agents fighting existing automation?

Give each resource one controlling mechanism at a time, expose the others' state as preconditions and cap combined activity.

Should the agent write the postmortem?

It can assemble a timeline with links. People should verify it and draw conclusions, especially about causes and responsibilities.

References

Where to go next