Skip to content

About

See what a Windows program really does: child processes, DLLs, connections, DNS, HTTP and decrypted TLS traffic, live.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

New Folder

see what a program really does. windows and linux.

New Folder tracing PowerShell: the event list on the left, the decrypted HTTPS response on the right

We couldn't find a name, so it's called New Folder for now. It does have a job though: you start a program through it (or attach to one that's already running) and watch, live, everything the program does underneath. The processes it spawns, the DLLs it loads, where it connects, what domains it looks up and the data it sends and receives, decrypted.

Caution

New Folder runs the program you pick. For real. It is not a sandbox, it does not emulate anything and it can't stop a program from doing damage. If you point it at a RAT, a trojan, a stealer or anything you don't trust, that program executes on the machine New Folder runs on, with your user's rights.

Only analyse suspicious files inside a virtual machine. Never on your own computer. See Analysing malware safely before you start.

What it shows

Processes every child process the program starts, full path, 32 or 64 bit, exit code
DLLs every module it loads. DLLs from outside C:\Windows are marked as Foreign DLL
Threads thread starts, plus a Suspicious thread alert when a thread begins outside every loaded module (that's how injected shellcode usually looks)
Connections each TCP and UDP socket it opens, local and remote address, state
DNS the domain names it resolves
HTTP full URLs, headers and bodies from WinHTTP, WinINet and URLDownloadToFileW
TLS plaintext before encryption and after decryption for everything that uses Windows' own TLS (Schannel): .NET HttpClient / WebClient / SslStream, PowerShell, WinHTTP, WinINet
Sockets raw send, recv, WSASend, WSARecv buffers
Other crashes, exceptions and OutputDebugString output

It works through the Windows debug API and breakpoints on those functions. Nothing gets injected into the target and no driver is installed.

Screenshots

Waiting for a target. Type a path or hit one of the Try buttons to see it work on a harmless program.

Start screen with Run mode selected, a path field and two Try buttons

The request going out. PowerShell's WebClient asked for https://example.com. On the wire this is TLS, but New Folder reads it before Schannel encrypts it, so the inspector shows the plain GET request.

TLS outgoing event selected, inspector shows GET / HTTP/1.1 Host: example.com

The answer coming back. Same session, the TLS incoming event: the server's headers and the start of the HTML, after decryption.

TLS incoming event selected, inspector shows HTTP/1.1 200 OK headers and HTML

Hex view for binary protocols or anything that isn't text.

Hex view of the decrypted response with offsets, bytes and ASCII columns

Network only. Turn event types on and off in the left panel (Alt+click shows only that one). Here DLLs, threads and alerts are hidden and what's left is the DNS lookup, the connection and the data.

Event list filtered to DNS, connections and data

Attach mode to watch a program that is already running.

Attach mode with a process picker in the title bar

Install

Everything is on the latest release page.

Windows 10 / 11 (64-bit): download new-folder-setup.exe and run it. it installs for your user only, no admin rights needed.

Linux (x86_64): pick one

  • Debian, Ubuntu, Mint, Kali: new-folder_amd64.deb, then sudo apt install ./new-folder_amd64.deb
  • anything else: new-folder.AppImage, then chmod +x new-folder.AppImage && ./new-folder.AppImage

The Windows installer and the AppImage update themselves: when a new version is out a Restart to update button shows up in the bottom right corner. The .deb updates by installing the new .deb over it.

macOS isn't supported. Apple locks down process tracing to signed, entitled apps and that needs a different design.

Linux: allowing attach

Running a program through New Folder works out of the box. Attach to a process that's already running is blocked by default on most distros (Yama ptrace_scope=1). Either start New Folder with sudo, or allow it until the next reboot:

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

Only do that inside your analysis VM, it lets any program of yours trace any other one.

Windows and Linux are not the same

The Linux version follows system calls with ptrace instead of hooking Windows DLLs, so it works the same no matter what language the program is written in.

Windows Linux
Processes, threads, exit codes yes yes (fork, clone, exec)
Loaded libraries DLLs .so files, ones outside system paths are marked
Connections yes yes, read straight from connect, accept, listen
DNS from the resolver API decoded from the DNS packets themselves
Plain HTTP and raw socket data yes yes
Decrypted HTTPS Schannel (.NET, PowerShell, WinHTTP, WinINet) OpenSSL and GnuTLS (curl, wget, Python, Ruby, PHP, most C/C++ programs)
Alerts thread starting outside any module writable + executable memory, anonymous executable memory, memfd_create, ptrace(TRACEME) anti-debug check

How to use it

  1. Run mode: type the full path of the program, for example C:\Tools\sample.exe, and any arguments. Press Start. New Folder launches the program, it opens in its own console window if it has one.
  2. Attach mode: pick a running process from the list and press Start. To attach to something running as admin or as another user, open New Folder as administrator.
  3. Watch the list fill up. Click any row to open it in the inspector on the right. Rows with captured data show the bytes as Text or Hex.
  4. Click a process in the left panel to see only its events, click it again to see everything.
  5. Ctrl+F searches everything, including captured data. Searching a domain name is the fastest way to find where it's used.
  6. Stop ends the trace. In Run mode this kills the program and every child it started. In Attach mode New Folder removes its breakpoints and lets the program keep running.
  7. Copy puts every visible event (with captured data) on the clipboard, so you can paste it into a report.

Capture data turns the network, TLS, HTTP and DNS hooks on or off. The number next to it is how many bytes are kept from each buffer, raise it if you need full bodies.

Reading the alerts

  • Suspicious thread: a thread started at an address that doesn't belong to any loaded DLL or the program itself. Legit programs almost never do this, injected code and unpacked payloads do.
  • Crash: the program hit an exception it didn't handle.
  • Exception: a first-chance exception. These are normal in a lot of software, .NET programs throw several just starting up, so don't read too much into them alone.
  • Foreign DLL: a DLL loaded from outside C:\Windows. Normal for most apps, but worth a look when it comes from Temp, AppData or Downloads.

Analysing malware safely

Tracing a program means running it. Treat every sample as if it will do the worst thing it can, because while it's being traced it can.

Do this:

  • Use a dedicated virtual machine (Hyper-V, VMware, VirtualBox) with a clean snapshot. Revert to the snapshot after every sample.
  • Put the VM on an isolated or host-only network, or a separate network you don't care about. A RAT that connects out gives someone control of whatever it's running on.
  • No shared folders, no shared clipboard, no drag and drop between the VM and your computer.
  • Don't sign in to anything inside the VM. no browser profiles, no Discord, no Steam, no password managers. Stealers go after exactly those.
  • Copy the sample into the VM, install New Folder inside the VM, trace it there.

Never do this:

  • Never run a RAT, trojan, stealer, cheat loader, "cracked" tool or anything you downloaded and don't trust with New Folder on your own computer. New Folder will run it and it will infect your machine just like double clicking it would.
  • Don't assume Stop undoes anything. It ends the processes New Folder started, but files the program already dropped, registry keys it wrote, scheduled tasks, services and programs it launched through other ways (WMI, the task scheduler, a service) keep existing and keep running.
  • Don't trust a quiet trace. Malware often checks for debuggers and virtual machines and just sleeps or exits when it finds one. Nothing suspicious in New Folder does not mean a file is clean.

Limits

  • Windows: data capture works on 64-bit programs. 32-bit programs still show processes, DLLs, threads and connections.
  • Linux: system call details are read for programs built for the same CPU as New Folder (x86_64). JIT runtimes like Node, Java and browsers map executable memory all the time, so the memory alerts are noisy for them.
  • Programs that bring their own TLS (Chrome and Electron apps, Go binaries, Rust programs using rustls, anything with OpenSSL linked statically) only show encrypted bytes at the socket level.
  • On Linux, HTTP/2 traffic (curl uses it when the server supports it) shows up as binary frames with compressed headers. Bodies are still readable.
  • Connections are read from the system socket table a few times per second, a connection that opens and closes faster than that can be missed. DNS lookups and captured data still show it.
  • Receives that complete asynchronously (overlapped WSARecv) aren't captured yet.
  • Kernel drivers and anything running outside the traced processes are invisible to it.

Build from source

You need Rust (stable) and Node.js 22. On Windows use the MSVC toolchain. On Linux install the webview libraries first:

sudo apt install libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev patchelf

Then:

cd gui
npm install
npm run build

Installers end up in gui/target/release/bundle/ (nsis/ on Windows, deb/ and appimage/ on Linux).

There's a command line version too, built from the repo root:

cargo build --release
target/release/new-folder-cli run --max-bytes 1024 C:\Windows\System32\curl.exe https://example.com

Releasing

  1. cd gui && npm run bump (or npm run bump minor)
  2. commit and push
  3. Actions → Release → Run workflow, and write one line about what changed

The workflow builds the Windows installer and the Linux .deb and AppImage at the same time, signs them for the updater and publishes one release with all of them. Installed apps pick it up the next time they start.

The updater key lives in ~/.tauri/new-folder-updater.key, its contents go in the TAURI_SIGNING_PRIVATE_KEY repository secret. keep a backup of it somewhere safe, if it gets lost installed apps can't be updated anymore.

About

See what a Windows program really does: child processes, DLLs, connections, DNS, HTTP and decrypted TLS traffic, live.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages