Join our Newsletter — 33% off our NHI Course

SesameOp: Novel backdoor uses OpenAI Assistants API for command and control

SesameOp is a backdoor that abuses the OpenAI Assistants API as a command-and-control channel. It lets an operator issue instructions through a legitimate service rather than obvious malware infrastructure. Defenders should monitor unusual API usage, outbound connections and processes that interact with assistant workflows outside approved applications.

How SesameOp changes the C2 problem

SesameOp is dangerous because it uses a legitimate AI service as part of the command path, which can make operator traffic look like ordinary application activity rather than a dedicated malware beacon. That blurs the line between approved automation and hostile control, and it can delay triage when defenders are already seeing a trusted cloud domain.

The core security issue is not just that the backdoor exists, but that it hides its control channel inside a normal SaaS workflow. That means defenders need to think about service usage, outbound connectivity and process behaviour together, not as separate problems.

Why this technique is hard to spot

command and control works best when it blends into expected business traffic. A backdoor that rides on a mainstream API can evade simple blocklists, domain reputation checks and assumptions that “cloud equals safe”. The relevant detection question becomes whether a host, user or application is using the service in a way that does not fit the approved workflow.

For the broader C2 pattern, the Command and Control (C2) Guide is a useful reference point because it covers beaconing, egress filtering and protocol abuse in a defender-friendly way.

Exposure and detection points

Organisations should start with asset and application inventory, then ask which hosts, scripts, runners or integrations are allowed to call the API at all. If the service is not part of an approved workflow, even low-volume traffic can be suspicious. A useful review also includes outbound proxy logs, DNS, process lineage and any alerting around unusual assistant workflow access.

Because this technique depends on legitimate cloud reachability, network controls still matter. Egress monitoring, application allowlisting and alerting on new or rare destinations can reveal the first signs of abuse even when the payload itself is hidden behind a normal service.

Why the identity and API layer matters

This technique often succeeds because the abused service already has trust, tokens or API access in place. That makes the security boundary partly an identity and permissions problem, not just a malware problem. If API credentials, session material or automation permissions are overbroad, an attacker can turn a legitimate integration into a control channel.

For readers who want the adjacent API-security lens, OWASP API Security Top 10 is the most direct external reference, especially for authentication, authorisation and exposed API abuse.

Risk and Threat Considerations

This technique is risky because it turns a trusted third-party service into attacker infrastructure, which can reduce the visibility of both initial compromise and ongoing control. Defenders may see normal-looking API calls, while the actual malicious intent sits in the instructions, timing and process context.

Failure mechanism: the backdoor uses a legitimate API path to mask command delivery, so conventional C2 signatures, domain blocking and simple cloud trust assumptions are less effective.

Impact: the attacker can retain interactive control longer, blend malicious traffic with approved usage, and increase the chance that the compromise survives basic network-based detection.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP API Security Top 10 address the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATT&CK T1105 — Ingress Tool Transfer C2 over a legitimate service is a covert remote-access path
T1090 — Proxy Legitimate SaaS can proxy attacker instructions through trusted infrastructure
Recommendation — Hunt for nonstandard remote tasking and restrict outbound channels used for remote control. Trace and alert on proxy-like traffic paths that hide command flow behind trusted services.
OWASP API Security Top 10 API2 — Broken Authentication Abuse of a legitimate API channel depends on weakly governed API credentials and sessions
Recommendation — Validate and rotate API credentials, and enforce strong authentication on service integrations.
CIS Controls v8 CIS-4 — Secure Configuration of Enterprise Assets and Software Constrain which systems may reach external services and what traffic they may generate
Recommendation — Allowlist approved API egress paths and block unexpected service-to-service access.
NIST SP 800-53 Rev 5 AU-6 — Audit Review, Analysis, and Reporting Detection relies on reviewing API usage, process context and anomalous access records
IA-5 — Authenticator Management The attack path depends on managing the secrets and tokens that authorize API use
Recommendation — Review logs for unusual assistant workflow access and correlate them with host activity. Protect, rotate, and scope API tokens used by automation and integrations.

Practitioner Guidance

Why practitioners should care: the right defence is to treat approved AI service usage as a monitored integration surface, not as inherently trusted traffic. If a host, script or service account interacts with assistant workflows outside the expected application path, that is a security signal, not a usage quirk.

What to watch for: unusual process ancestry, new egress destinations, rare API access patterns, and assistant-related traffic from systems that should not be calling those workflows. If those signals appear together, investigate whether the service usage is genuinely authorised or being used as a covert control path.

Practitioner takeaway: the most effective control is often not a single block rule, but tight approval of who may call the service, from where, and for what workflow.