# The first 30 days of a shadow IT detection program

URL: https://howtodetectshadowit.com/first-30-days/
Published: 2026-11-22
Updated: 2026-11-22

Day 1 to 7: export logs before they roll off (Microsoft Entra sign-in logs keep 7 or 30 days) and build one inventory sheet. Day 8 to 14: merge lists and find an owner for each row. Day 15 to 30: triage, close the default settings that create new shadow IT, and set a weekly re-pull. Do not block anything first. Retention figures read 22 Nov 2026.

## Before day 1: three decisions

The plan assumes day 1 is Monday 30 Nov 2026 and a part-time owner with admin read access. Shift every date by the same number of days if you start later. If a checkpoint falls on a weekend, deliver it the Friday before.

- **One owner for the sheet.** One named person keeps the inventory sheet; everyone else sends rows to that person.
- **Read access to the identity provider and cloud organization.** The documented roles: at least Cloud Application Administrator to browse Entra enterprise apps, the Audit & Investigation administrator privilege to read Google Workspace OAuth log events, and access to the AWS management account (or a delegated administrator) to list organization accounts.
- **A promise to owners.** Tell the security lead and the IT director that the first month is discovery and conversation, with no blocking, so that nobody is surprised by a ticket from a team you have not spoken to.

## Why week 1 is about exports

Most of the evidence expires. If you start with analysis instead of copying, the oldest sign-ins and grants are gone before you read them. Default retention, from each vendor's documentation:

**How long the main sources keep data by default**

| Source | Default retention | Action on day 1 |
|---|---|---|
| Microsoft Entra sign-in and audit logs | 7 days on Entra ID Free; 30 days on P1 and P2. Longer retention by "routing it to an Azure storage account using Azure Monitor." | Turn on the diagnostic setting that archives the logs to storage, then export the last available window. |
| Okta System Log | "System Log data older than 90 days isn't returned." | Export 90 days through the System Log API if Okta is your identity provider. |
| Google Workspace OAuth Token log events | 6 months. The Admin console view shows the last 7 days by default. | Set the date range to the full 6 months, then export. |
| AWS CloudTrail event history | "the past 90 days of management events in an AWS Region." | Create an organization trail so history continues past 90 days. |
| Azure activity log | "Azure retains activity log events for 90 days and then deletes them." | Create a diagnostic setting to a storage account. |

## Week 1, days 1 to 7: export and list

Run each lane's method once, in this order, and save the raw output with the date in the file name. The step by step methods are on the lane pages; this list says when to run them.

- **Day 1 (Mon 30 Nov): identity logs.** Archive Entra sign-in logs and audit logs, and export Okta or Google Workspace logs per the table above. Method: [SaaS apps and OAuth grants](/saas-apps-and-oauth/).
- **Day 2: app and grant lists.** List Entra enterprise applications (Entra ID > Enterprise apps > All applications), then the Google Workspace OAuth log events and the App access control lists (Configured apps, Accessed apps, Apps pending review). Google notes that app details typically appear 24 to 48 hours after authorization.
- **Day 3: cloud accounts.** List every account in your AWS organization (ListAccounts), every Azure subscription and management group (Azure Resource Graph Explorer), and every Google Cloud project in your organization (Cloud Asset Inventory). Add the billing account lists from each provider. Method: [cloud accounts](/cloud-accounts/).
- **Day 4: internet-facing assets.** Export your DNS zones (Route 53 ListHostedZones and record lists, Azure DNS zone export, your registrar or DNS host export), and list certificates issued for your domains from certificate transparency logs. Method: [internet-facing assets](/internet-facing-assets/).
- **Day 5: devices and network.** Export DHCP leases (for Windows DHCP, Get-DhcpServerv4Lease), the Intune Discovered apps report, and the Defender for Endpoint device discovery list. Method: [devices and network](/devices-and-network/).
- **Days 6 and 7: build sheet version 0.** Paste each lane's rows into the inventory sheet below, one row per app, account, domain or device, with the evidence column filled.

## The inventory sheet

One sheet, one row per finding, the same columns for every lane. The data_types, sign_in, scopes and contract columns come from the risk questions on the [risks page](/shadow-it-risks/), and the decision columns feed the [triage method](/managing-shadow-it/).

**Inventory sheet columns**

| Column | Filled in | What goes in it |
|---|---|---|
| id | Day 6 | A short unique code, such as S-014 for SaaS, C-003 for cloud, E-021 for external, D-007 for device. |
| lane | Day 6 | saas, cloud, external or devices. |
| name | Day 6 | App name, account ID, hostname or device name. |
| identifier | Day 6 | Domain, OAuth client ID, AWS account ID, subscription ID, project ID, IP or MAC address. |
| found_by | Day 6 | The log or list name and the export file name. |
| first_seen, last_seen | Day 6 | Dates from the log, in YYYY-MM-DD. |
| active_users_30d | Day 7 | Count from the sign-in or OAuth log. |
| owner | Day 14 | A named person, or "none found". |
| owner_confirmed_on | Day 14 | The date the owner confirmed in writing. |
| business_purpose | Day 14 | One sentence in the owner's words. |
| data_types | Day 14 | Regulated personal data, protected health information, card data, code and secrets, or none. |
| sign_in | Day 14 | SSO, password, OAuth grant or API key; MFA yes or no. |
| scopes | Day 14 | For OAuth rows, the permissions granted. |
| contract | Day 14 | Vendor contract, data processing terms or business associate contract: on file, requested or none. |
| annual_cost_and_payer | Day 14 | Amount and who pays. |
| decision | Day 21 | Approve, replace or retire. |
| decided_by_and_on | Day 21 | Name and date. |
| next_action_and_due | Day 21 | One action and its due date. |

## Week 2, days 8 to 14: merge and find owners

Deduplicate first: the same app appears in the sign-in log, the OAuth list and the expense report under three names. Match on domain or client ID, not on display name. Then get an owner on every row. Start with rows that hold regulated data or tenant-wide permissions, then the rest.

- Day 8 to 9: deduplicate, then correct first_seen, last_seen and active_users_30d on the merged rows.
- Day 10 to 12: send each suspected owner the same message: what we found, what we need to know, that nothing is being blocked, and the date for a 15 minute call.
- Day 13: for rows with no answer, ask the manager of the user group, then mark the owner "none found".
- Day 14: re-export the identity logs and compare them with the day 1 export to see what changed in a week.
- Day 14: freeze version 1 of the sheet and count rows per lane and per owner status.

**Where to find an owner, by lane**

| Lane | Owner clues in the data you already exported |
|---|---|
| SaaS apps and OAuth | The first user in the grant or sign-in log, the group of users who share the app, and the billing contact on the app's receipts. |
| Cloud accounts | The root or account email, the billing account holder, tags on resources, and the creator in the organization's account list or audit log. |
| Internet-facing assets | The registrant contact in RDAP, the team named in the zone file comment or repository, and the certificate requester. |
| Devices and network | The hostname convention, the switch port or access point it connected to, and the user who last signed in on the endpoint. |

## Week 3, days 15 to 21: triage

Hold two 30 minute reviews, on days 16 and 20, with the security lead and one person from the business. Use the criteria in the [managing shadow IT guide](/managing-shadow-it/#criteria): activity, data, contract, sign-in, access, duplicate tool, owner. Start with rows that hold regulated data or broad permissions. Record the decision for each row in the sheet and the next action with a date.

Hold any owner conversations not finished in week 2, using the questions in the [talking section of the managing guide](/managing-shadow-it/#talk). Do not announce decisions to a team before you have spoken with its owner.

## Week 4, days 22 to 30: close the defaults and set the routine

The goal is that a new shadow app appears on your radar, not on an auditor's. Do this only after triage, so you do not break a tool you just approved.

- **Turn on a request path.** Enable the Entra admin consent workflow and name reviewers, or enable Google Workspace's request setting for unconfigured apps, so that a refused consent becomes a ticket.
- **Tighten consent.** Review the Entra user consent setting or the Google Workspace Unconfigured third-party apps setting, using the list of grants you already have. Read the current policy first; Microsoft warns to retrieve the existing authorizationPolicy so you do not remove developer consent.
- **Test guardrails on one unit.** Attach AWS service control policies to a test organizational unit, not the root, as AWS advises, and check the effect before widening.
- **Schedule the re-pull.** Put the exports on the calendar every 7 days for the first quarter, with the first run by day 23. CISA's BOD 23-01 uses 7 days for automated asset discovery.
- **Report.** Send the security lead the counts per lane, the number with and without owners, and the decisions made.

## What to have at day 7, 14 and 30

Use this as the acceptance test at each checkpoint. If you miss one, finish it before starting the next.

**Deliverables by checkpoint**

| By | Exports | Inventory sheet | Owners and decisions |
|---|---|---|---|
| Day 7 (Fri 4 Dec) | Raw files from every lane, dated; Entra and other logs archived beyond default retention. | Version 0: columns id to active_users_30d filled for every row; lane counts known. | None required; list of suspected owners started. |
| Day 14 (Fri 11 Dec) | Second export of the identity logs to show what changed in a week. | Version 1: deduplicated; owner, purpose, data_types, sign_in and contract columns filled where known. | Every row has an owner or "none found"; first owner calls held for rows with regulated data or broad permissions. |
| Day 30 (Tue 29 Dec) | Weekly re-pull scheduled and run at least twice. | Version 2: decision, decided_by_and_on and next_action_and_due filled for every row with regulated data or broad permissions. | Decisions recorded; request path live; report sent to the security lead. |

## What not to do in the first 30 days

- **Do not block first.** Microsoft's tutorial orders the work as discover, evaluate, then govern, and says to contact the app's users about "the business justification for using the app" before you decide. Unsanctioning an app "doesn't block use" on its own, and a block with no conversation sends the team to a personal account you can no longer see.
- **Do not change tenant-wide consent or attach service control policies on day 1.** [Week 4](#week4) covers how, after triage.
- **Do not wait for a tool.** The free exports above work before you buy anything. Once you have run them, the [signal matrix](/detection-signal-matrix/) shows which lane has no signal and what to add.
- **Do not announce an amnesty or a threat.** A company-wide message produces hiding or panic. Talk to owners one by one.
- **Do not delete data you have not exported.** A retire decision starts with an export.

## Sources

**learn.microsoft.com**

- [Quickstart: View enterprise applications (Microsoft Entra ID)](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/view-applications-portal), read 22 Nov 2026
- [Data retention in Microsoft Entra reports](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/reference-reports-data-retention), read 22 Nov 2026
- [Azure Monitor activity log](https://learn.microsoft.com/en-us/azure/azure-monitor/fundamentals/activity-log), read 22 Nov 2026
- [Run your first Resource Graph query using Azure portal](https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-portal), read 22 Nov 2026
- [Import and export a DNS zone file (Azure DNS)](https://learn.microsoft.com/en-us/azure/dns/dns-import-export), read 22 Nov 2026
- [Get-DhcpServerv4Lease (Microsoft Learn)](https://learn.microsoft.com/en-us/powershell/module/dhcpserver/get-dhcpserverv4lease?view=windowsserver2025-ps), read 22 Nov 2026
- [Discovered apps (Microsoft Intune)](https://learn.microsoft.com/en-us/intune/app-management/discovered-apps), read 22 Nov 2026
- [Microsoft Defender for Endpoint device discovery overview](https://learn.microsoft.com/en-us/defender-endpoint/device-discovery), read 22 Nov 2026
- [Configure how users consent to applications (Microsoft Entra ID)](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent), read 22 Nov 2026
- [Overview of the admin consent workflow (Microsoft Entra ID)](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/admin-consent-workflow-overview), read 22 Nov 2026
- [Tutorial: Discover and manage shadow IT (Microsoft Defender for Cloud Apps)](https://learn.microsoft.com/en-us/defender-cloud-apps/tutorial-shadow-it), read 22 Nov 2026
- [Govern discovered apps (Microsoft Defender for Cloud Apps)](https://learn.microsoft.com/en-us/defender-cloud-apps/governance-discovery), read 22 Nov 2026

**knowledge.workspace.google.com**

- [OAuth log events (Google Workspace Help)](https://knowledge.workspace.google.com/admin/reports/oauth-log-events?visit_id=639309604804332557-101394172&rd=1), read 22 Nov 2026
- [Data retention and lag times (Google Workspace Help)](https://knowledge.workspace.google.com/admin/reports/data-retention-and-lag-times?visit_id=639309604840121904-2350776217&rd=1), read 22 Nov 2026
- [Control which apps access Google Workspace data (Google Workspace Help)](https://knowledge.workspace.google.com/admin/apps/control-which-apps-access-google-workspace-data?visit_id=639309604819357719-1775910399&rd=1), read 22 Nov 2026

**docs.aws.amazon.com**

- [ListAccounts (AWS Organizations API)](https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListAccounts.html), read 22 Nov 2026
- [What is AWS CloudTrail?](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html), read 22 Nov 2026
- [ListHostedZones (Amazon Route 53 API)](https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListHostedZones.html), read 22 Nov 2026
- [Service control policies (AWS Organizations)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html), read 22 Nov 2026

**developer.okta.com**

- [System Log API (Okta)](https://developer.okta.com/docs/reference/system-log-query/), read 22 Nov 2026

**docs.cloud.google.com**

- [Cloud Asset Inventory overview (Google Cloud)](https://docs.cloud.google.com/asset-inventory/docs/asset-inventory-overview), read 22 Nov 2026

**certificate.transparency.dev**

- [How Certificate Transparency works](https://certificate.transparency.dev/howctworks/), read 22 Nov 2026

**icann.org**

- [Registration Data Access Protocol (ICANN)](https://www.icann.org/en/contracted-parties/registry-operators/resources/registration-data-access-protocol), read 22 Nov 2026

**cisa.gov**

- [CISA Binding Operational Directive 23-01](https://www.cisa.gov/news-events/directives/bod-23-01-improving-asset-visibility-and-vulnerability-detection-federal-networks), read 22 Nov 2026

Each source was read on the date at the top of this page unless a date is given.

[Previous guide What do I do with the shadow IT I find?](/managing-shadow-it/)[Next guide What is shadow IT?](/what-is-shadow-it/)

Spot something wrong? [Corrections policy](/corrections/) or write to [editor@howtodetectshadowit.com](mailto:editor@howtodetectshadowit.com).

On this page

- [Before day 1: three decisions](#before)
- [Why week 1 is about exports](#retention)
- [Week 1, days 1 to 7: export and list](#week1)
- [The inventory sheet](#sheet)
- [Week 2, days 8 to 14: merge and find owners](#week2)
- [Week 3, days 15 to 21: triage](#week3)
- [Week 4, days 22 to 30: close the defaults and set the routine](#week4)
- [What to have at day 7, 14 and 30](#checkpoints)
- [What not to do in the first 30 days](#dont)

See also

- [The lane map](/)
- [Detection signal matrix](/detection-signal-matrix/)
- [Policy template](/policy-template/)
- [Glossary](/glossary/)
- [Examples](/examples/)
