Shadow IT discovery: how to find and manage unknown services, cloud accounts and AI tools
What shadow IT and shadow AI are, why they appear, which risks they carry, and a practical program to detect shadow IT from billing, DNS, egress, SSO and telemetry data, decide what to keep and bring it under management without a blame culture.
Summary
- Shadow IT is any service, cloud account, SaaS tool or AI assistant used for work without the knowledge of the teams responsible for security and operations. Shadow AI adds unapproved AI assistants, private API keys for LLM providers and unofficial MCP servers.
- No single source finds everything. Combine cloud billing and organisation listings, cloud inventory, DNS, proxy and egress logs, identity provider logs, host-level service discovery, unexpected OpenTelemetry service names, code repositories and expense reports.
- Treat discovery as a recurring program, not a raid: inventory, classify, decide (legitimize, migrate or shut down), onboard into SSO and monitoring, then detect continuously. An amnesty approach brings more to light than punishment.
Every organisation has shadow IT. A team signs up for a SaaS tool with a credit card because procurement takes six weeks. A developer starts a test VM in a personal cloud account and forgets it. A data analyst pastes a customer export into an AI chatbot to get a quick summary. None of this is usually malicious. It is people trying to get work done. But each of these systems sits outside your inventory, your access control, your logging and your patch process, and that is where the risk comes from.
This guide explains what shadow IT and shadow AI are, why they appear, which risks matter, and how to detect shadow IT with data you probably already have: cloud billing, DNS and egress logs, identity provider logs and telemetry. It ends with a step-by-step program, a decision matrix and a checklist to manage shadow IT over time.
What is shadow IT?
Shadow IT is any hardware, software, cloud service or account used for work without the knowledge or approval of the teams responsible for IT, security and operations. Typical examples:
- SaaS tools signed up for by a team: file sharing, survey tools, project boards, browser extensions with access to company data.
- Cloud accounts and projects outside the official organisation, for example a personal AWS account, a Google Cloud project created with a private login, or a forgotten trial subscription.
- Unknown services in your own infrastructure: a database a team started "for a week", a self-hosted tool on a spare VM, a container that nobody owns.
- Integrations and tokens: personal access tokens, OAuth apps and webhooks that connect company systems to external services.
Shadow AI: the newest form of shadow IT
Shadow AI is the use of AI tools outside approved channels. It has grown quickly because AI tools are cheap, easy to try and immediately useful. Common forms:
- Unapproved AI assistants and chatbots used with company data, including source code, customer records or internal documents.
- Private API keys for LLM providers built into scripts, services or CI jobs, often billed to a personal or team credit card and invisible in central cost reports.
- Unofficial MCP servers: a Model Context Protocol server downloaded from a public repository and connected to an AI agent that can read tickets, query databases or run commands. Our guide to MCP server security and monitoring covers the specific threats, such as tool poisoning and prompt injection.
- Coding agents used with private subscriptions on company repositories, so neither usage nor cost is visible to the team that owns the code.
Why shadow IT happens
Shadow IT is a symptom. It rarely comes from people who want to break rules; it comes from a gap between what teams need and what the official route delivers in time. The usual causes:
- Speed: a team needs a tool this week, and signing up takes five minutes.
- Slow or unclear procurement: nobody knows whom to ask, or the security review queue is months long.
- Missing alternatives: the approved tool does not cover the use case, or there is no approved AI assistant at all.
- Free tiers and trials that need no purchase order and turn into production dependencies.
- Decentralised cloud access, where anyone with a credit card can create a cloud account.
This matters for how you respond. If you only shut things down, teams will hide the next tool better. If you make the official route faster, much of the shadow IT disappears on its own.
Shadow IT risks
| Risk | What it means in practice |
|---|---|
| Data protection and GDPR | Personal data is processed by a provider without a data processing agreement, outside your records of processing, possibly outside the EU. For AI tools, it may be unclear whether inputs are stored or used for training. |
| Unknown and unpatched systems | A forgotten VM or self-hosted tool is not in the patch process. If a vulnerability is published, nobody knows the system exists. |
| Missing logging | No central logs, no audit trail, no alerts. In an incident you cannot reconstruct who accessed what. See our guide to security logging and audit logs. |
| Access outside identity management | Accounts with local passwords instead of SSO, no multi-factor authentication, no offboarding when someone leaves. |
| Leaked credentials | API keys for cloud or LLM providers in scripts, notebooks or repositories, with broad permissions and no rotation. |
| Costs | Duplicate subscriptions, forgotten cloud resources and AI usage on personal cards that never appear in central cost reports. |
| Supply chain | Unvetted tools, browser extensions and MCP servers can become an entry point, a classic supply-chain attack path. |
| Compliance gaps | Frameworks such as ISO 27001 expect an inventory of assets, and NIS2 lists asset management among its risk management measures. Systems you do not know about cannot be in that inventory. |
Shadow IT also undermines zero trust and least privilege: you cannot verify every access or restrict permissions on systems that are not under management. For the regulatory side, our article on NIS2 monitoring requirements gives more context. Whether a specific framework applies to you is a question for your compliance team.
Shadow IT discovery: where to look
No single data source finds all shadow IT. Billing finds what costs money, DNS finds what is reached from the corporate network, the identity provider finds what uses SSO, and telemetry finds what runs on monitored hosts. Combine several sources and compare them with your official inventory.
| Source | What it reveals | Blind spots |
|---|---|---|
| Cloud billing and organisation listings | Accounts, subscriptions and projects inside your cloud organisations; unexpected services and regions in invoices | Accounts outside the organisation, paid privately |
| CSPM and cloud inventory | Resources in connected accounts: public buckets, open security groups, resources without owner tags | Only accounts that are connected |
| DNS, proxy and egress logs | SaaS and LLM domains reached from your network and workloads, unusual outbound destinations | Home office without VPN, personal devices, encrypted DNS that bypasses your resolver |
| Identity provider and SSO logs | Apps users sign in to with their company account, OAuth consents granted to third-party apps | Tools with local accounts and passwords |
| Host-level and eBPF service discovery | Processes and services running on hosts, and whom they talk to | Hosts without an agent |
| OpenTelemetry service names | New or unexpected service.name values, services reporting as unknown_service | Services that send no telemetry |
| Code repositories and IaC | LLM SDK dependencies, API key variable names, MCP configuration files, Terraform for unknown accounts | Code outside your Git platform |
| Expense reports and card statements | SaaS and AI subscriptions paid by card and reclaimed as expenses | Free tiers, tools paid privately and never reclaimed |
| LLM API traffic | Which services call which model providers, how often and with which models | Calls from personal devices and browser-based chat tools |
Example queries to detect shadow IT
The following snippets are generic examples, not tied to a particular product. Adapt paths, field names and domain lists to your environment.
1. List cloud accounts and projects you actually have:
# Generic examples: compare the output with your official account list
aws organizations list-accounts --query 'Accounts[].[Id,Name,Email,Status]' --output table
gcloud projects list --format="table(projectId,name,parent.id)"
az account list --all --output table
Accounts registered with unknown email addresses, projects without a parent folder and subscriptions nobody can name are your first candidates.
2. Find DNS queries to SaaS and LLM provider domains:
# Generic example: count resolver log lines for well-known LLM API domains
grep -hoE 'api\.openai\.com|api\.anthropic\.com|api\.mistral\.ai|generativelanguage\.googleapis\.com' \
/var/log/dns/*.log | sort | uniq -c | sort -rn
Extend the list with the SaaS categories you care about, such as file sharing or note-taking tools. If your resolver logs include the client IP, you can map hits to hosts or teams.
3. Egress by destination from flow logs:
-- Generic pseudo-SQL over flow logs: top external destinations in the last 7 days
SELECT dst_addr, dst_port,
COUNT(DISTINCT src_addr) AS sources,
SUM(bytes) AS bytes_out
FROM flow_logs
WHERE action = 'ACCEPT'
AND NOT is_private(dst_addr)
AND start_time > now() - INTERVAL '7' DAY
GROUP BY dst_addr, dst_port
ORDER BY bytes_out DESC
LIMIT 50;
Large or steady outbound volumes to destinations nobody recognises deserve a look, both as shadow IT and as a possible data exfiltration signal.
4. Unknown service.name values in telemetry:
# Generic example: service names seen in telemetry but missing from the catalog
# observed_services.txt = distinct service.name values from the last 7 days
comm -13 <(sort -u known_services.txt) <(sort -u observed_services.txt)
OpenTelemetry SDKs fall back to a name like unknown_service:<process> when no service name is configured. Those entries are often small helpers or new services that nobody has registered yet.
5. Search repositories for AI usage and MCP configurations:
# Generic example: find LLM keys, endpoints and MCP configs in a Git repository
git grep -nE 'OPENAI_API_KEY|ANTHROPIC_API_KEY|api\.openai\.com|api\.anthropic\.com'
git ls-files | grep -E '(^|/)\.mcp\.json$|mcp.*\.(json|ya?ml)$'
A hit is not automatically a problem. It tells you where AI is used, so you can check whether the usage runs through an approved account and whether keys are stored in a secret manager rather than in code.
How to manage shadow IT: a five-step program
Discovery is only useful if something happens afterwards. A simple program that repeats every quarter works better than a one-off clean-up.
Step 1: Inventory
Collect findings from all sources into one list: name, type (SaaS, cloud account, service, AI tool, integration), where it was found, who uses it and since when. Do not decide anything yet. The goal is a complete picture, and duplicates across sources are a good sign that a finding is real.
Step 2: Classify
For each entry, answer three questions: Which data does it touch? (public, internal, personal data, secrets, source code), how critical is it for the business? (nice to have, daily use, production dependency) and who owns it? An entry without a person who takes responsibility is itself a finding.
Step 3: Decide: legitimize, migrate or shut down
A simple decision matrix based on data sensitivity and business value:
| Low business value | High business value | |
|---|---|---|
| Low data sensitivity | Tolerate or shut down: remove if unused, otherwise accept with a named owner | Legitimize: run a light review, add to the inventory, connect to SSO |
| High data sensitivity | Shut down: export data, revoke access and keys, close the account | Legitimize with controls or migrate to an approved alternative: data processing agreement, SSO, logging, owner |
For AI tools, "migrate" often means providing an approved assistant or a central API account with clear rules, so teams have a better option than their private key.
Step 4: Onboard into SSO and monitoring
Everything you keep should be treated like any other system:
- Identity: SSO with your identity provider, MFA, role-based access following RBAC, and offboarding linked to HR processes.
- Inventory and ownership: an entry in your service catalog or CMDB with an owner team.
- Telemetry: services send logs, metrics and traces with a proper
service.name; cloud accounts move into the official organisation and are connected to your posture checks. - Secrets: API keys move into a secret manager, get rotated and are scoped to the minimum permissions needed.
- Costs: subscriptions and LLM usage move to central billing, so they show up in your cost reports.
Step 5: Continuous detection
Shadow IT comes back. Turn the discovery queries into recurring checks and alerts: a new cloud account outside the organisation, a new SaaS domain with traffic from many hosts, a new service.name that is not in the catalog, a first call to a new LLM provider. Review the results in a fixed rhythm and feed them back into step 1.
Amnesty, not punishment
The fastest way to find shadow IT is to ask. Announce a time-limited amnesty: teams register the tools, accounts and AI services they use, and nobody is reprimanded for anything reported in that window. In return, the IT and security teams commit to a quick review and a clear answer.
- Explain why: data protection, security and cost, not control for its own sake.
- Make registration easy: a short form, not a ticket with twenty mandatory fields.
- Publish the result: a list of approved tools, including at least one approved AI assistant, and a fast path for new requests.
- Follow up with technical discovery to find what was not reported, and discuss it with the owners rather than switching it off without notice, unless there is an acute security risk.
The aim is a culture where asking is faster than working around the process.
Checklist: shadow IT and shadow AI discovery
- Cloud organisation listings are compared with the official account list at least quarterly.
- All known cloud accounts are connected to posture checks with read-only access.
- DNS, proxy or egress logs are collected centrally and searched for SaaS and LLM provider domains.
- Identity provider logs and OAuth consents are reviewed for unknown applications.
- Hosts run an agent or eBPF-based discovery, so unexpected services and connections become visible.
- Every service sets a meaningful
service.name;unknown_serviceentries are investigated. - Repositories are scanned for API keys, LLM endpoints and MCP configurations.
- Expense reports are checked for SaaS and AI subscriptions together with finance.
- An approved AI assistant and a central LLM API account exist, with rules for data use.
- Each kept tool has an owner, SSO, MFA, logging and an entry in the inventory.
- An amnesty and a fast request path have been communicated.
- Discovery queries run as recurring checks with alerts on new findings.
How Obseria helps
For the software side of shadow IT, Obseria has its own product: Obseria Shadow IT brings discovery sources, an inventory of the applications in use, risk and vendor compliance, contracts, renewals, licences, spend and savings, software requests, onboarding and offboarding and access reviews together in one place. It is not a CASB and does not block applications; connections to workspace directories are read-only, and revoking access in Obseria creates a task for the app owner instead of changing anything at the vendor. For unknown services, cloud accounts and AI traffic on the technical side, the observability and security platform helps within what is connected or instrumented, or what appears in the logs and network data you send:
- Unknown services on monitored hosts: universal service monitoring and eBPF monitoring list every service with spans in the last 24 hours, with its path (SDK or eBPF) and when it was last seen, and count services without
telemetry.sdk.name. Services on hosts where neither the host agent, eBPF nor an SDK reaches them stay invisible. - Map and connections: Obseria TopoGraph builds a map of hosts, processes and services from your telemetry and can highlight new or changed connections. Network monitoring shows calls, throughput and firewall events per host, which helps spot unexpected outbound connections.
- Coverage of the collection layer: agent management shows hosts online and offline, agent versions and instrumented processes, so gaps in monitoring become visible; fleet automation manages and updates Obseria host agents centrally.
- Connected cloud accounts: CSPM checks connected AWS, Azure, Google Cloud and Kubernetes environments with read-only credentials against security rules. Accounts you have not connected are not checked.
- Detection on logs: the Cloud SIEM runs detection rules over the logs and telemetry you send, for example cloud audit logs or identity provider logins, and reports findings. Detection only, nothing is blocked. See also SIEM in the glossary.
- AI traffic that is instrumented: LLM monitoring shows calls per model from OpenTelemetry spans, and AI cost analytics breaks spend down by model, feature and customer, and for coding agents by person and team. Our guide to Claude Code cost monitoring for teams shows the setup.
- Keys in code: secret scanning finds API keys and tokens in connected GitHub repositories and their history; it does not rotate or revoke them.
- Ownership and control: the service catalog records owners and flags services without one; access control and SSO and the audit trail cover who can change what in Obseria itself.
To see which of your services and connections show up in your own data, start a free trial.
Frequently asked questions about shadow IT
What is the difference between shadow IT and shadow AI?
Shadow AI is a subset of shadow IT: AI tools, assistants, LLM API keys and MCP servers used without approval. It deserves extra attention because users often paste sensitive data into prompts, and AI agents can act on other systems.
How do I find shadow IT without a dedicated tool?
Start with data you already have: cloud organisation listings and billing, DNS or proxy logs, identity provider logs, code repositories and expense reports. Compare the results with your official inventory and follow up with the owners.
Should we block all unapproved SaaS and AI tools?
Blocking alone tends to push usage onto personal devices, where you see even less. Block what is clearly dangerous, and offer approved alternatives and a fast request path for the rest.
Is shadow IT always a security problem?
Not always, but it is always a visibility problem. A harmless tool becomes a risk once it holds personal data, credentials or production dependencies without an owner, SSO or logging.
How often should we run shadow IT discovery?
Run automated checks continuously and review the results in a fixed rhythm, for example monthly, with a broader inventory review every quarter.