One Monday morning, the finance manager of a small business discovers a suspicious mailbox rule. Every email containing the word “invoice” is being forwarded to an external address. A supplier says it received a change of bank details in her name. Who created that rule? Since when? Did the intruder read other messages?
This scenario is fictional; the questions it raises are very real. And the answer depends above all on the traces that are available. With Microsoft Entra ID Free, the relevant sign-in logs disappear after 7 days. If nobody has copied them, the digital investigation starts in the dark.
Key points
- Microsoft 365 traces disappear quickly: 7 days for sign-ins with Entra ID Free, 30 days with P1 or P2, 180 days for Purview Audit (Standard).
- A licence bought after an incident does not bring back logs that have expired.
- Copilot respects access rights, but it can amplify sharing mistakes.
- The Copilot audit says who used it, when, and which documents were used for the answer; the text of the exchanges is elsewhere, if it has been kept.
- The actions of administrators, service providers, AI agents and backup platforms must be logged out of their reach.
- Preparing for an investigation (forensic readiness) is done before the incident.
Why is securing Microsoft 365 not enough?
Because protecting yourself and being able to prove are two distinct capabilities. Multi-factor authentication (MFA), Conditional Access and endpoint protection reduce the risk of an incident. They do not guarantee that, six months later, you can say who signed in, from where, to which documents, or who exported what.
These questions arise after payment fraud, a contentious departure, a dispute with an IT service provider or a request from a regulator or a court. They now arise for AI too: what did a user ask Copilot, what did an automated agent do?
Forensic readiness, or preparation for a digital investigation, is an organisation's ability to collect, preserve and use reliable digital evidence when an incident or a dispute occurs. And to do so at the lowest cost and with as little disruption as possible. It rests on four capabilities:
- Detect what is abnormal, at the right time.
- Reconstruct the facts from dated traces.
- Control the most powerful accounts: administrators, service providers, agents.
- Prove, internally and before a court.
How long does Microsoft 365 keep audit and sign-in logs?
From 7 days to one year depending on the source and the licence; beyond that, an export or an add-on licence is needed. Logs are the video surveillance of your environment: they record who does what, then are erased automatically. Microsoft Entra ID manages identities and sign-ins; Microsoft Purview brings together auditing, search and content retention.
| Source | What it records | Default retention |
|---|---|---|
| Microsoft Entra ID Free | Sign-ins and directory changes | 7 days |
| Microsoft Entra ID P1 or P2 | Same as above | 30 days |
| Purview Audit (Standard) | User and administrator activities, including the use of Copilot | 180 days |
| Purview Audit (Premium) | Same, for Exchange, SharePoint, OneDrive and Entra ID | 1 year, up to 10 years with an add-on licence |
| Azure activity log | Operations on Azure resources | 90 days |
| Copilot Studio agents | Conversation transcripts | 30 days |
Retention periods published by Microsoft, checked on 28 November 2026. Three pitfalls are worth knowing:
- Auditing is not always turned on. With small-business licences (Business Basic, Standard and Premium), unified auditing is not enabled by default: check it (Microsoft Learn).
- A licence bought after the incident does not recover the past. Moving from Entra ID Free to P1 or P2 gives back 7 days at most (Microsoft Learn).
- No single source is enough. A sign-in appears in Entra ID, access to a message in the Purview audit, an alert on a workstation in Microsoft Defender. The investigation cross-checks them.
The remedy: continuously export the logs to a centralised analysis platform, a SIEM (for example Microsoft Sentinel, Wazuh, Graylog or Elastic). It must be administered by people other than the Microsoft 365 administrators. Ideally, its archives are kept on immutable storage (known as WORM), where nothing can be changed or erased before the retention period ends (Microsoft Learn). This is the measure that most improves the ability to investigate.
Can Copilot expose confidential documents?
Copilot does not bypass permissions: it only shows data to which the user already has access (Microsoft Learn). That is precisely why it can amplify the consequences of permissions that are too broad. Picture an ultra-fast archivist holding the same keys as the user: within seconds, he opens every door that was left ajar.
Fictional example: a salesperson asks Copilot for a summary of the pay rises planned in his team. The answer draws on a salary file stored on a management SharePoint site, shared by mistake with the whole organisation. Copilot bypassed no protection. It may nevertheless be a personal data breach within the meaning of the GDPR, to be assessed.
Data oversharing is therefore dealt with before or during deployment:
- Find sharing that is too broad: sites open to everyone, teams never reviewed, links valid for the whole company.
- Classify sensitive information (HR, finance, health, contracts) with sensitivity labels, which Copilot respects. A data loss prevention (DLP) policy can also exclude it from Copilot's answers (Microsoft Learn).
- Set sensitive sites aside with Restricted Content Discovery, a feature included in Copilot licences (Microsoft Learn). It is a holding measure, not a correction of the permissions.
- Test with representative accounts: what does an intern, a salesperson or an employee from another department see?
Can you find out what an employee asked Copilot?
Yes, in part, provided you know where to look. Like a telephone call, an interaction with Copilot leaves two distinct traces: the call record (who, when) and the content of the conversation.
- The record is in the Purview audit, which automatically logs the use of Copilot (Microsoft Learn). It shows who, when, in which application, and which files or sites were used for the answer, but not the text of the questions (prompts) or of the answers (Microsoft Learn).
- The content is stored in a hidden folder of the user's mailbox. eDiscovery, the Purview search tool, finds it as long as it has not been deleted, hence the value of a retention policy (Microsoft Learn).
There are exceptions: for Copilot Cowork, Microsoft states that questions and answers appear in the audit (Microsoft Learn). What is recorded must therefore be checked application by application.
These exchanges may be produced in a dispute: access to them must be reserved for authorised persons, and users must be informed of this.
Two blind spots remain. Consumer AI tools used with a personal account escape the organisation's logs. And the absence of a record does not prove the absence of an action. Banning without offering an alternative pushes these uses into the shadows (Shadow AI): it is better to offer a governed tool.
AI agents: what happens when the assistant acts on its own?
An assistant answers; an agent acts. With Copilot Studio, an agent can consult documents, query business applications, modify records and send messages. Some are triggered on their own, by an event rather than by a question (Microsoft Learn).
Fictional example: an agent handles the requests arriving in a shared mailbox with the credentials of its maker. An incoming message contains hidden instructions, invisible to a human. The agent follows them and sends customer data to an external address. This is an indirect prompt injection (OWASP).
For the investigation, everything becomes harder. The agent acted in the name of an employee who had nothing to do with it, and its transcripts disappear after 30 days by default. An agent that can act is therefore governed like a privileged account:
- an inventory, and an identified owner for each agent;
- the end user's credentials rather than the maker's (Microsoft Learn), with minimal rights;
- human validation of sensitive actions (external sending, deletion, payment, change of rights), because by default a tool added to an agent runs without confirmation;
- prompt injection tests before going into production.
Administrators, service providers, backups: who controls those who can see everything?
A Global Administrator account is a master key: almost unlimited access to the settings and to most of the data (Microsoft Learn). What an administrator can do legitimately, an attacker who takes over the account can do too. Microsoft recommends having fewer than five (Microsoft Learn).
Several operations can target an employee without that person being notified: a right added to the mailbox, an eDiscovery search, a restore of messages from a backup. Backup is a sensitive point, because it concentrates a copy of every mailbox and every file. An export made in the console of a third-party solution may even leave no trace at all on the Microsoft side.
Four principles limit this risk:
- Separate the roles: whoever administers identities does not administer auditing, backups and eDiscovery alone.
- Grant rights just in time: temporary, justified activation of critical roles (Privileged Identity Management, PIM), with approval for the most sensitive ones.
- Frame service providers: limited, temporary delegated rights (GDAP), named accounts, contract clauses on logging and the right to audit.
- Log and alert: roles assigned, forwarding rules, exports, restores, changes to auditing, with logs copied out of reach of the persons being controlled.
Conversely, a technical capability is not evidence. The fact that a service provider could access a mailbox does not show that it did so, nor that it did so without authorisation. Only traces that are correlated and placed in their context (mandate, ticket, instruction) can establish it.
How do you preserve usable evidence on the day of the incident?
The first hours often decide what can later be proved. As with a sealed exhibit, finding an item is not enough: you must show that it has not been altered. The ISO/IEC 27037 and 27042 standards and the NIST SP 800-86 guide describe good practice (ISO, NIST).
- Freeze: place the mailboxes and sites concerned on hold and immediately copy the logs that are still available. What was permanently deleted before the hold cannot be recovered in this way.
- Collect cleanly: dedicated accounts, documented methods; for each export, note the query, the filters, the period and the time zone.
- Compute the hash of each exported file as soon as it is created (for example SHA-256), the equivalent of a fingerprint: recomputing it later shows that the file has not changed.
- Keep the chain of custody: who held each item, when, where and why.
- Reconstruct the timeline: timestamps converted to Coordinated Universal Time (UTC), sources cross-checked, facts distinguished from hypotheses.
- Attribute with caution: an action performed from an account does not say who was at the keyboard.
This is the core of a cyber investigation carried out properly. In a dispute, the court may appoint a judicial expert, and the expert examination is conducted with all parties heard. Serious preparation guarantees no outcome, but it gives the expert and the parties verifiable material.
The absence of traces is not proof that there was no incident.
Further reading:
- Ransomware: the decisive first hours
- How do you preserve digital evidence?
- IT forensic expertise and digital expertise
- Proving that digital content is authentic
What do NIS2, the GDPR and the AI Act say?
No text imposes all of these measures on every organisation: everything depends on the sector, the size and the risk analysis. Several frameworks nevertheless make traceability hard to ignore.
| Framework | What it implies here |
|---|---|
| NIS2 and the Belgian law of 26 April 2024 | Incident handling, access control, MFA; a significant incident is notified to the CCB within 24 hours, then within 72 hours |
| GDPR | A breach is notified to the authority within 72 hours where feasible; the logs themselves contain personal data |
| DORA (financial sector) | Management and recording of ICT-related incidents, logging procedures |
| AI Act | AI literacy of staff; “high-risk” rules postponed to 2 December 2027 and 2 August 2028 depending on the case (Digital Omnibus) |
| ISO/IEC 27001 and 27002:2022 | Collection of evidence (5.28), logging (8.15), monitoring (8.16), clock synchronisation (8.17) |
Investigating does not mean monitoring everything. In Belgium, Collective Labour Agreement No. 81 governs the monitoring of employees' electronic communications: purpose, proportionality, transparency (National Labour Council). An internal investigation must therefore be targeted, justified, documented and conducted by authorised persons, ideally with the DPO or legal counsel. See also our page Digital forensics for lawyers and legal teams. This article is not legal advice.
Where to start: 7 priority actions
- Check that unified auditing is enabled and establish, licence by licence, what is logged and for how long.
- Continuously export the Entra ID logs and the unified audit to a centralised platform, out of reach of the Microsoft 365 administrators.
- Inventory privileged accounts, service providers, applications and agents; remove what is no longer used; move critical roles to just-in-time access.
- Protect administration and emergency accounts with phishing-resistant authentication, such as a FIDO2 passkey.
- Deal with data oversharing before or during the deployment of Copilot, and set a retention policy for interactions.
- Frame the backup platform: separate roles, logged restores and exports.
- Write a response procedure that provides for the preservation of evidence: holds, copy of the logs, hashes, chain of custody.
The best time to prepare a digital investigation is before the incident.
Frequently asked questions
How long does Microsoft 365 keep sign-in logs?
7 days with Microsoft Entra ID Free, 30 days with P1 or P2. To keep them longer, they must be exported to Log Analytics, a storage account or a SIEM.
Does a licence bought after an incident make it possible to recover older logs?
No. Retention changes are not retroactive: logs that have already expired cannot be recovered.
Can the questions (prompts) put to Copilot be recovered?
Yes, if they have been kept, but not in the audit log. That log shows who used Copilot, when, in which service and which resources were accessed. The text of the exchanges is stored in the user's mailbox. It is searched with eDiscovery or DSPM for AI, depending on the configuration and the retention policies.
Can Copilot give access to documents the user is not entitled to?
No. Copilot only shows data to which the user already has access. But it makes that data much easier to find: permissions that are too broad can then expose sensitive information.
Is a backup enough to carry out an investigation?
No. A backup makes it possible to restore content, not to know who did what. It must itself be protected and logged, because it gives access to a copy of every mailbox and every file.
What is forensic readiness?
It is an organisation's ability to collect, preserve and use reliable digital evidence when an incident or a dispute occurs. It requires identified sources, logs that are kept and protected, and collection procedures that are ready before the incident.
Can an organisation monitor its employees with these tools?
Only within a legal framework: legitimate purpose, proportionality, transparency and prior information. In Belgium, Collective Labour Agreement No. 81 governs this monitoring, and the GDPR applies to the logs, which contain personal data.
Official sources (checked on 28 November 2026)
- Microsoft Entra: data retention, export of risk data, privileged roles, PIM, GDAP, emergency access accounts.
- Microsoft Purview: getting started with auditing, auditing solutions, turning auditing on, audit log retention policies, auditing Copilot, retention for Copilot and AI apps, Copilot Cowork.
- Microsoft 365 Copilot: data, privacy and security, data protection and auditing, getting ready with SharePoint Advanced Management, SharePoint Advanced Management licensing.
- Copilot Studio: agent tools, maker credentials, transcripts.
- Azure and backup: Azure activity log, immutable storage, Microsoft 365 Backup, Microsoft 365 admin roles.
- European Union and Belgium: NIS2 Directive, Belgian NIS2 law, GDPR, DORA, AI Act, Digital Omnibus on AI, CLA No. 81, Belgian DPA: electronic monitoring.
- Standards and frameworks: ISO/IEC 27037, ISO/IEC 27042, ISO/IEC 27002:2022, NIST SP 800-86, OWASP LLM01 Prompt Injection.
Does your organisation want to know whether it could investigate a Microsoft 365 or Copilot incident? Describe your situation in writing: the preliminary written assessment is free. Submit a confidential request.