| Technique | Determine Physical Locations (T1591.001) |
| Tactic | Reconnaissance |
| Platforms | PRE |
On this page
Overview
T1591.001 (Determine Physical Locations) is a pre-compromise reconnaissance technique where adversaries collect information about a target organization's physical sites — office addresses, data center locations, branch offices, and the legal jurisdictions they operate within. Attackers use this intelligence to plan follow-on actions such as tailored phishing campaigns, physical intrusion attempts, supply chain attacks targeting specific facilities, or simply to understand what regulatory environment governs the victim's data.
Because this technique occurs almost entirely outside the defender's visibility — on public websites, social media, and open data sources — it rarely generates direct alerts. However, it often co-occurs with other observable reconnaissance activities (credential phishing, website scraping, suspicious inbound email), making it a critical threat to understand and detect indirectly. Missing this phase means your team is reacting to an attacker who already has a detailed map of your organization.
Attacker Perspective
Before launching any active operation, adversaries build a physical picture of the target to identify high-value sites, reduce operational risk, and select the most effective attack vector.
- Open-source corporate data mining: Attackers use tools like
theHarvesteror manual SEC EDGAR searches (https://efts.sec.gov/LATEST/search-index?q="[company name]") to extract office addresses, registered agent locations, and subsidiary sites from public filings. - Victim website scraping: Tools like
httrackorwget --mirrorare used to bulk-download the target's public website, then grep for address strings, Google Maps embeds, or location-tagged contact pages to enumerate all physical presences. - Social media and LinkedIn reconnaissance: Platforms like LinkedIn are queried via tools such as
linkedin2usernameor manual searches to identify employees by office location, revealing site headcount and key personnel tied to specific facilities. - Phishing for information: Adversaries send pretextual emails (e.g., impersonating a delivery service or facilities vendor) to employees to elicit office addresses, security checkpoint procedures, or on-site contact names directly from staff.
This technique is attractive because it is entirely passive and free — it generates no alerts on the defender's side, requires no special access, and directly informs high-impact follow-on actions including physical access attempts and geographically targeted spear-phishing.
Detection Strategy
Required Telemetry
- Email gateway logs (all platforms): Enable full header logging including
sender_ip,reply_to,subject,recipient, and attachment metadata. In Microsoft 365, enable Unified Audit Log and Message Trace (Admin Center → Compliance → Audit). In Google Workspace, enable Gmail log sharing to BigQuery or your SIEM. This is your primary source for detecting phishing-for-information attempts. - Web proxy / DNS logs: Ensure your proxy or DNS resolver logs full query and response data including
query_name,src_ip,user_agent, andreferrer. In Palo Alto, enable URL Filtering logs. In Cisco Umbrella, enable full DNS activity logs. These catch internal users being directed to attacker-controlled recon sites or employees inadvertently visiting data-harvesting pages. - Endpoint process execution logs (Windows): Enable Command Line Process Auditing via GPO:
Computer Configuration → Windows Settings → Security Settings → Advanced Audit Policy → Detailed Tracking → Audit Process Creation → Success. This generates Event ID 4688 with the full command line. Also enable PowerShell Script Block Logging via GPO:HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging → EnableScriptBlockLogging = 1, generating Event ID 4104. These catch local OSINT tooling or scripts run from inside the organization (insider threat or post-compromise reconnaissance). - Endpoint process execution logs (Linux/macOS): Deploy auditd with the rule
-a always,exit -F arch=b64 -S execve -k process_execto capture all process executions. On macOS, enable Endpoint Security Framework logging via your EDR (CrowdStrike, SentinelOne, Jamf Protect). These capture curl, wget, or python scripts performing automated OSINT against external data sources. - EDR telemetry: Ensure your EDR (CrowdStrike Falcon, Microsoft Defender for Endpoint, SentinelOne) is configured to log network connections by process (
parent_process,process_name,dest_ip,dest_domain). This correlates process behavior with outbound connections to known OSINT platforms. - Cloud access logs (if applicable): Enable AWS CloudTrail, Azure Activity Log, or GCP Cloud Audit Logs to detect API calls that expose organizational metadata (e.g., querying organization registration data, cloud-hosted contact pages, or public S3 bucket contents containing directory information).
- Firewall / network flow logs (NetFlow/IPFIX): Enable session-level logging with
src_ip,dest_ip,dest_port,bytes_sent, andbytes_received. These catch bulk outbound data transfers to scraping services or inbound scanning activity probing public-facing web properties.
Key Indicators
- Phishing-for-information email indicators: In email gateway logs, check
subjectfor patterns like"delivery confirmation","facilities survey","office directory update", or"vendor verification". Checksender_domainfor lookalike domains (e.g.,company-facilities[.]comvscompany[.]com). Flagreply_toaddresses that differ fromfromaddresses — a classic pretexting indicator. - Suspicious inbound links in email: In email body or URL scanning logs, check
urlfor links to Google Forms, Typeform, or custom domains asking recipients to confirm addresses or fill out "facilities surveys." Flag anyurlpointing to a domain registered within the last 30 days (cross-reference with WHOIS enrichment). - OSINT tooling on endpoint: In Windows Event ID 4688 or EDR process logs, check
process_namefortheHarvester.py,maltego,recon-ng, orspiderfoot. Checkcommand_linefor patterns likepython theHarvester.py -d [domain]orwget --mirror https://[target]. These are almost never legitimate on corporate endpoints. - Bulk web scraping of public-facing properties: In web proxy or firewall logs, look for inbound
src_ipaddresses making more than 50 requests in 60 seconds to your organization's public website, withuser_agentstrings matching known scrapers:HTTrack,wget,python-requests,curl, or empty/null user agents. Correlate with pages containing address or contact information. - Suspicious LinkedIn or social media reconnaissance: In DNS logs, flag internal hosts resolving
linkedin.com,hunter.io,rocketreach.com, orspokeo.comat abnormal volumes from non-HR/non-recruitment systems. In EDR, flag browser processes with connections to these domains from servers or non-standard workstations. - SEC EDGAR or public registry queries: In proxy logs, check
dest_domainforefts.sec.gov,opencorporates.com,dnb.com, or state secretary-of-state registration portals. Individually these are benign; in combination with other indicators they form a reconnaissance pattern. - Employee response to phishing-for-information: In email gateway logs, flag outbound emails from employees to external domains containing keywords like
"address","location","office","facility"in the body — especially if the recipient domain was registered recently or matches a known pretexting pattern.
Detection Logic
Rule 1 (Broad — High Sensitivity): Inbound email with location-elicitation keywords from external sender
IF email.direction = "inbound" AND email.sender_domain NOT IN [known_good_domains] AND (email.subject CONTAINS "address" OR email.subject CONTAINS "location" OR email.subject CONTAINS "facility" OR email.subject CONTAINS "office directory" OR email.subject CONTAINS "delivery") AND email.reply_to != email.from THEN alert("Potential phishing-for-information: location elicitation email")
This catches pretextual emails designed to get employees to reply with physical location details. Expected volume is moderate — tune aggressively using the exclusion list below, as delivery notifications from known vendors will trigger this frequently at first.
Rule 2 (Medium Precision): Inbound bulk scraping of public web properties
IF web_server_log.src_ip = [external_ip] AND web_server_log.request_count > 50 WITHIN 60_seconds AND (web_server_log.uri_path CONTAINS "contact" OR web_server_log.uri_path CONTAINS "about" OR web_server_log.uri_path CONTAINS "location" OR web_server_log.uri_path CONTAINS "office") AND web_server_log.user_agent MATCHES ("wget|HTTrack|python-requests|curl|scrapy|^$") THEN alert("Potential web scraping targeting contact/location pages")
This catches automated harvesting of your public site's contact and location pages. Volume should be low-to-medium; legitimate bot traffic (Googlebot, Bingbot) must be excluded by known crawler IP ranges and user agent strings.
Rule 3 (High Precision): OSINT reconnaissance tooling executed on corporate endpoint
IF process.name IN ["theHarvester.py", "recon-ng", "spiderfoot", "maltego"] OR process.command_line MATCHES ("theHarvester|recon-ng|spiderfoot|wget --mirror|httrack") AND process.parent_name NOT IN ["authorized_pentest_tools"] AND host.environment != "pentest_lab" THEN alert("OSINT tooling executed on corporate endpoint — possible insider recon or post-compromise activity")
This is a very high-fidelity rule with near-zero expected false positives outside of a penetration testing context. Alert volume should be extremely low; any hit warrants immediate investigation.
Rule 4 (Correlated — Behavioral Chain): Employee responds to external email with location-related content
IF email.direction = "outbound" AND email.recipient_domain NOT IN [known_good_domains] AND email.recipient_domain_age_days < 90 AND (email.body CONTAINS "address" OR email.body CONTAINS "our office" OR email.body CONTAINS "located at" OR email.body CONTAINS "facility") THEN alert("Employee may have disclosed physical location data to unverified external party")
This catches the most dangerous outcome of phishing-for-information: an employee actually replying with the data the adversary wanted. Volume will be low if domain-age enrichment is working; expect some false positives from new legitimate vendor relationships.
Tuning Guidance
- Legitimate delivery and logistics notifications: Major carriers (UPS, FedEx, DHL, USPS) send high volumes of emails with location-related subjects. Exclude by adding verified sender domains and their sending IP ranges to an allowlist:
sender_domain IN ["ups.com", "fedex.com", "dhl.com", "usps.com"]and validate with SPF/DKIM pass status. - Authorized web crawlers on public properties: Googlebot, Bingbot, and other legitimate search engine crawlers will trigger web scraping rules. Exclude by maintaining a list of known good crawler IP ranges and user agent patterns:
user_agent NOT MATCHES ("Googlebot|Bingbot|AhrefsBot|Semrushbot") AND src_ip NOT IN [known_crawler_ranges]. - HR and recruitment teams using OSINT tools legitimately: Recruiters routinely use LinkedIn, Hunter.io, and similar platforms. Exclude specific user accounts or OU groups from DNS/proxy rules:
user NOT IN [hr_recruitment_group]. Do not exclude the endpoint process rules — recruiters should not be running theHarvester on corporate machines. - Authorized penetration testing activity: Red team and pentest engagements will execute OSINT tools on corporate endpoints. Maintain a pentest schedule and exclude activity during declared testing windows:
host.name NOT IN [pentest_lab_hosts] AND event.time NOT WITHIN [approved_pentest_window]. Require red team to operate from dedicated systems. - New vendor onboarding emails: Finance and procurement teams frequently correspond with newly registered vendor domains. Reduce noise from Rule 4 by scoping it to non-procurement users:
user NOT IN [procurement_group]or requiring a secondary indicator (e.g., domain age AND no prior email history with that domain).
When the Alert Fires: Investigation Steps
- Verify the alert is real: Pull the raw event from the originating log source (email gateway, proxy log, EDR, or SIEM) and confirm the alert fired on actual data — not a parsing error or test event. Confirm the timestamp, source system, and log integrity before taking any further action.
- Identify the affected user and host: Determine the employee who received or sent the suspicious email, or the endpoint that executed OSINT tooling, using your directory service (Active Directory, Azure AD) or EDR. Flag immediately if the account holds privileged roles (IT admin, executive, facilities manager, or anyone with physical access authority).
- Pull the full command-line and process chain: If an endpoint alert fired, use your EDR (CrowdStrike Process Tree, MDE Device Timeline, or SentinelOne Deep Visibility) to retrieve the full process ancestry — what spawned the suspicious process, and what child processes it launched. For email alerts, pull the full email headers, body, and any attachments from your email gateway.
- Check for network connections and data written to disk: In EDR or proxy logs, identify all outbound connections made by the suspicious process or by the user's browser immediately after opening the suspicious email link. Check for files written to disk (downloaded attachments, tool output files) using EDR file event logs filtered by
process_nameand time window. - Determine whether the employee disclosed information: Search outbound email logs in your email gateway for any replies from the targeted employee to the suspicious sender, particularly within 24 hours of the initial email. Review the content for physical addresses, site descriptions, or names of facilities personnel — this determines whether reconnaissance was successful.
- Search for lateral movement or additional reconnaissance from this host: In your SIEM, query for Event ID 4624 (logon events), 4648 (explicit credential use), or EDR network telemetry from the affected host in the 48 hours following the alert. Look for connections to internal file shares, additional OSINT tool execution, or abnormal outbound DNS queries that suggest a broader campaign.
- Escalation decision: Escalate to a confirmed incident if any of the following are true: an employee replied with physical location data, OSINT tooling was found on an endpoint not in the pentest lab, the suspicious email is part of a campaign targeting multiple employees, or the targeted user holds privileged or physical access roles. Treat as low-priority/benign only if the email was blocked before delivery, no employee interaction occurred, and no tooling or lateral movement indicators are found.
Response Playbook
Containment
- If an endpoint executed OSINT tooling: Isolate the host from the network immediately using your EDR's network containment feature (CrowdStrike: "Contain Host," MDE: "Isolate Device," SentinelOne: "Network Quarantine"). Leave the system powered on to preserve volatile memory and running process state for forensic collection.
- If an employee responded to a phishing-for-information email: Disable the affected user account in Active Directory (
Disable-ADAccount -Identity [username]) or Azure AD (Conditional Access block or account disable in Entra ID admin portal) to prevent the attacker from using any credentials or access the employee may have inadvertently shared. - Block attacker infrastructure: Submit the sender domain, reply-to address, and any URLs from the suspicious email to your email gateway block list and DNS RPZ (Response Policy Zone). Block identified sender IP addresses at the perimeter firewall. If a phishing site is involved, submit to your proxy/web filter's block list by category or explicit URL.
- Revoke active sessions: If the targeted account is a cloud user (M365, Google Workspace), revoke all active sessions and OAuth tokens immediately. In M365:
Revoke-AzureADUserAllRefreshToken -ObjectId [user_id]. In Google Admin: Security → User Account → Reset Sign-in Cookies. - Notify physical security: If location data was confirmed disclosed, immediately notify your physical security team and facilities management so they can increase vigilance at named sites, review visitor logs, and brief front-desk staff on potential tailgating or social engineering attempts.
Eradication
- Remove any OSINT tooling found on endpoints: Use your EDR to search across the fleet for the same tool binaries or scripts identified on the affected host (
file.name IN ["theHarvester.py", "recon-ng", "spiderfoot"]). Delete identified files and quarantine any associated artifacts. Document file hashes for threat intelligence. - Audit and remove persistence mechanisms: On any affected host, review scheduled tasks (Event ID 4698, 4702), registry run keys (
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run), and newly installed services (Event ID 7045) created within the investigation time window. Remove any unauthorized entries found. - Reset credentials for all affected accounts: Force a password reset for the targeted employee and any accounts found to have been used or referenced in the incident. If the user has MFA enrolled, verify the MFA device list and remove any unrecognized authenticators.
- Scan for additional backdoors or implants: Run a full EDR threat hunt across any hosts the affected user logged into during the 48-hour window before containment. Look for unsigned binaries, unusual parent-child process relationships, and persistence mechanisms. Cross-reference file hashes against VirusTotal or your threat intelligence platform.
- Rotate exposed secrets and API keys: If the affected user had access to cloud environments, CI/CD pipelines, or any system where credentials are stored, rotate all associated API keys, service account passwords, and secrets immediately. Audit access logs for those systems to confirm no unauthorized use occurred.
Recovery
- Verify host cleanliness before reconnecting: Before removing network isolation, perform a full EDR scan and manually review startup items, scheduled tasks, and installed software for the affected host. If confidence in cleanliness is below 100%, re-image the host from a known-good baseline rather than attempting manual remediation — time saved is not worth residual risk.
- Re-enable the user account with confirmation: Only re-enable the affected user account after confirming no persistence remains on their primary workstation, their email account shows no unauthorized forwarding rules or delegates, and their MFA devices have been verified. Brief the user on the incident and what to watch for before returning them to work.
- Monitor for 72 hours post-remediation: Create a temporary watchlist in your SIEM for the affected user account, host, and any identified attacker infrastructure. Alert on any re-appearance of the blocked domains, any login from unusual locations by the affected account, or any re-execution of flagged tooling. Run this watchlist for a minimum of 72 hours.
- Document and communicate the full timeline: Write a complete incident timeline from first suspicious indicator to containment and recovery. Share a summary with physical security leadership, the affected employee's manager, and legal/compliance if location data was confirmed disclosed to an external party (consider regulatory notification obligations depending on jurisdiction).
- Update detection rules with new IOCs: Add all newly discovered sender domains, IP addresses, URL patterns, and tool hashes to your SIEM detection rules, threat intelligence platform, and email/proxy block lists. Review the detection rules that fired (and those that should have fired but didn't) and refine thresholds or logic based on what you learned from this investigation.
Stay Ahead
Get daily threat intelligence and weekly detection playbooks.
Free. No account. No email. Follow in Feedly, Inoreader, or any RSS reader.