Summary
Togoder Security scanned the npm package fdir@6.5.0 on Oct 6, 2026. An AI review of 2 source files produced 2 low severity findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.
Findings 2
Dynamic module loading
NPS-160D5790A17A
The code attempts to require('picomatch') inside a try/catch block. This is a normal optional dependency loading pattern for the fdir package, not malicious dynamic loading. The resolved module name is a literal string and not user-controlled.
dynamic-module-loading
NPS-A1F83205B871
The code attempts to resolve and load the 'picomatch' module at import time using createRequire. While this is a legitimate optional dependency pattern for glob matching, it constitutes dynamic module loading at import time based on available modules.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| dist/index.cjs | safe | This is a directory traversal/walking library (fdir) with standard filesystem operations; no malicious patterns such as exfiltration, credential harvesting, obfuscation, or process spawning were detected. |
| dist/index.mjs | safe | This is the fdir directory traversal library with no malicious patterns; only a benign optional picomatch dependency load at module initialization. |
Frequently asked questions
Is fdir safe to use?
Our AI source review of fdir@6.5.0 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.
Does fdir contain malware?
No malware was identified in fdir@6.5.0 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was fdir checked?
Togoder Security downloaded the published npm package and had an AI model read its 2 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan fdir together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in fdir@6.5.0, cost nothing.