Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PhantomFS — Windows honeypot using ProjFS to project decoy files that trigger Event Log and desktop alerts when accessed, with SMB remote session logging for lateral movement detection. | Kitploit
Tools/GitHubGitHub/alloysecuregroup/phantomfs
Defensive ToolsIntrusion DetectionIncident Response
GitHuballoysecuregroup/phantomfs

PhantomFS

Windows honeypot using ProjFS to project decoy files that trigger Event Log and desktop alerts when accessed, with SMB remote session logging for lateral movement detection.

View Repository
6845 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

PhantomFS — Fake Files. Real Security.

Fake Files. Real Security.
Virtual honeypot file system for Windows — lure attackers into a directory that looks real, then catch them in the act.

MIT License Platform .NET 4.8 Sponsor


What Is PhantomFS?

PhantomFS uses the Windows Projected File System (ProjFS) to surface a virtual directory full of convincing decoy files — financial reports, SSH keys, API credentials, HR spreadsheets, NDAs — that exist only in memory. No data is ever written to disk until an attacker (or insider threat) opens one.

The moment a file is touched, PhantomFS:

  • Writes a Windows Event Log entry (Application log, source PhantomFS)
  • Fires a Toast notification to the active desktop session
  • Logs the exact filename, timestamp, and process context
  • When accessed over a network share — captures the SMB username and source address

Because legitimate users have no reason to open files they didn't put there, every alert is high-confidence. No tuning, no ML, no cloud dependencies — just a native Windows driver and a single executable.


Features


Requirements

  • Windows 10 version 1809 (Build 17763) or later — Windows 11 recommended
  • .NET Framework 4.8
  • Windows Projected File System optional feature enabled (Enable-WindowsOptionalFeature -Online -FeatureName Client-ProjFS -NoRestart)
  • Administrator privileges to start the virtual root

Quick Start

Simple Commands (recommended)

  1. Download PhantomFS-v1.1.0-x64.zip from Releases and extract it
  2. Run as Administrator — enable ProjFS, Enable-WindowsOptionalFeature -Online -FeatureName Client-ProjFS -NoRestart
  3. Execute .\PhantomFS.exe --virtroot C:\PhantomFS\Virtual\Documents --syntheticonly
  4. Browse to C:\PhantomFS\Virtual\Documents in Explorer — you will see the decoy files
  5. Open one — watch the Toast fire and check Event Viewer → Windows Logs → Application

Configuration

All settings live in PhantomFS.exe.config. All keys are optional — omitting a key uses the default shown in the table.

Use the PhantomFS Profile Builder to generate different config profiles for your deployment scenarios:

  • https://alloysecuregroup.github.io/PhantomFS/

<settings> Section

root@kitploit:~
<settings>
  <enableEventLog>true</enableEventLog>
  <enableToast>true</enableToast>
  <alertOnOpen>true</alertOnOpen>
  <alertOnRead>true</alertOnRead>
  <toastCooldownSeconds>15</toastCooldownSeconds>
  <verbose>false</verbose>
  <virtRoot></virtRoot>
  <sourceRoot></sourceRoot>
  <syntheticOnly>true</syntheticOnly>

  <!-- v1.1.0 — auto-cleanup -->
  <autoCleanupEnabled>true</autoCleanupEnabled>
  <autoCleanupDelaySeconds>300</autoCleanupDelaySeconds>

  <!-- v1.1.0 — remote session logging -->
  <resolveRemoteIPs>true</resolveRemoteIPs>
</settings>

Remote Session Logging

When a file is accessed over an SMB share, PhantomFS detects PID 4 (the Windows System process / kernel SMB driver) as the caller and automatically calls NetSessionEnum to identify the remote user. The Event Log entry and Toast notification will include:

root@kitploit:~
PhantomFS — Honeypot File Content Read
File    : Documents\Q4_Financial_Report_2024.pdf
Process : System (PID 4)
Remote  : CORP\jsmith @ DESKTOP-A1B2C3D  [192.168.1.45]

Requirements for remote logging:

  • The Server service must be running (it starts automatically whenever a share is active)
  • PhantomFS must be running on the machine hosting the share
  • resolveRemoteIPs requires the client machine to be resolvable via DNS

Auto-Cleanup Behaviour

After a synthetic file is opened and hydrated (content written to disk), a background timer checks every 30 seconds and deletes files whose hydration time exceeds autoCleanupDelaySeconds. The deleted file reverts to a virtual ProjFS placeholder — the next access re-triggers the ProjFS callback as if the file had never been opened.

Files that are still open when the cleanup timer fires are skipped without error and retried on the next 30-second cycle.

Adding Decoy Files

Add entries under <syntheticFileList> in the config:

root@kitploit:~
\Documents,true,0,1744586986
\Documents\Q4_Financial_Report_2024.pdf,false,8192,1744586986
\Documents\Employee_Salaries_2024.xlsx,false,4096,1743942586
\IT\Keys,true,0,1744586986
\IT\Keys\deploy_key.pem,false,3247,1742354986

Adding Content Templates

root@kitploit:~
<syntheticTemplates>
  <template name="my_custom_file.txt"><![CDATA[
    ... your file content here ...
  ]]></template>
</syntheticTemplates>

Event Log Reference

Open Event Viewer → Windows Logs → Application and filter by source PhantomFS.


CI/CD — GitHub Actions

PhantomFS ships a workflow at .github/workflows/build.yml that compiles for x64 and ARM64 in parallel, and publishes a GitHub Release on every version tag.


Building from Source

root@kitploit:~
# Requires .NET Framework 4.8 SDK or Visual Studio Build Tools
csc.exe /platform:x64 /r:System.Xml.dll /out:PhantomFS.exe src\PhantomFS.cs

csc.exe is typically at:

root@kitploit:~
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe

Deployment Ideas

  • Workstation trap — run as a scheduled task at logon; any lateral movement to \\hostname\PhantomFS\Virtual fires an immediate alert with the attacker's username and source IP
  • File server canary — place a \Finance share pointing at the virtual root alongside the real finance share; remote session logging identifies exactly which account browsed the bait
  • Developer machine — surface fake AWS keys and SSH keys in ~\Documents; insider or supply-chain attacks trigger alerts before exfiltration
  • Air-gapped segment — set resolveRemoteIPs=false to skip DNS in environments where external lookups are blocked; the NetBIOS machine name is still captured


Sponsorship

PhantomFS is free, open-source, and MIT-licensed. If it has saved you time — or caught a real attacker — please consider sponsoring continued development.

❤ Sponsor on GitHub

Sponsors receive:

  • Priority issue responses
  • Early access to new templates and features
  • A mention in the release notes

Corporate sponsors ($500+/month) receive a private Slack channel for direct support and feature requests.


License

root@kitploit:~
MIT License

Copyright (c) 2026 Alloy Secure

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Trademark Notice: PhantomFS™ is a trademark of Alloy Secure. All rights reserved.


Disclaimer — Acceptable Use

PhantomFS is provided for lawful defensive security purposes only — including intrusion detection, threat research, and authorized penetration testing on systems you own or have explicit written permission to monitor.

You are solely responsible for ensuring your use of PhantomFS complies with all applicable local, national, and international laws, including but not limited to computer fraud, wiretapping, privacy, and employment law. Deploying PhantomFS on systems or networks without proper authorization may be illegal.

The authors and contributors of PhantomFS:

  • Make no warranties, express or implied, regarding fitness for any particular purpose
  • Accept no liability for any direct, indirect, incidental, or consequential damages arising from the use or misuse of this software
  • Are not responsible for any data loss, system damage, legal liability, or harm to third parties resulting from deployment of PhantomFS in any environment

Use at your own risk. By using PhantomFS you acknowledge that you have read this disclaimer, understand it, and agree to be bound by its terms.

Trademark Notice: PhantomFS™ is a trademark of Alloy Secure. All rights reserved.


Acknowledgments

Built on the Windows Projected File System API — the same technology that powers WSL2 and OneDrive Files On-Demand.

Inspired by my work as a researcher at Thinkst 💚 https://citation.thinkst.com/talk/94782

Download Tool
FeatureDetails
Zero-footprint decoysFiles are projected on demand — nothing is written to disk unless an attacker reads a file
Windows Event LogEvent ID 1001 (file read), 1002 (placeholder created), 1003 (started), 1004 (stopped)
Toast alertsImmediate desktop notification via Windows PowerShell — works even over RDP
Remote session loggingSMB username and source address captured via NetSessionEnum when PID 4 triggers access
Auto-cleanupHydrated synthetic files deleted after a configurable delay; reverts to virtual on next access
Configurable templatesPDF, XLSX, DOCX, JSON, CSV, PEM, plain text — all served from XML templates in the config
Per-file cooldownConfigurable throttle (default 15 s) prevents alert floods when a tool reads multiple chunks
Synthetic file listDrop-in XML list of convincing filenames with realistic byte sizes
Single executablePhantomFS.exe + PhantomFS.exe.config — no installer required
KeyDefaultSinceDescription
enableEventLogtrue1.0.0Write to Windows Application event log
enableToasttrue1.0.0Send desktop Toast notification
alertOnOpentrue1.0.0Alert when a placeholder is first created (directory browse)
alertOnReadtrue1.0.0Alert when file data is actually read
toastCooldownSeconds151.0.0Minimum seconds between Toasts for the same file path
verbosefalse1.0.0Extra console output for diagnostics
virtRoot(arg 1)1.0.0Override virtual root path from config rather than command line
sourceRoot(empty)1.0.0Optional real backing directory — leave empty for synthetic-only mode
syntheticOnlytrue1.0.0Serve only the files listed in <syntheticFileList>
autoCleanupEnabledtrue1.1.0Delete materialized synthetic files after the delay and revert to virtual
autoCleanupDelaySeconds3001.1.0Seconds after hydration before the file is deleted (cleanup timer runs every 30 s)
resolveRemoteIPstrue1.1.0DNS-resolve the SMB client hostname to an IP address; set to false if lookup latency is unacceptable
Event IDLevelMeaning
1001WarningA decoy file's data was read (includes remote user/IP when applicable)
1002WarningA decoy file placeholder was created (file was browsed/stat'd)
1003InformationPhantomFS started — virtual root path and settings logged
1004InformationPhantomFS stopped cleanly