
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@lad-tech/nsc-fast-install
Advanced tools
@lad-tech/nsc-fast-install
⚡️ Быстрая установка только нужных зависимостей при сборке микросервисов из большого моно-репозитория
В монорепозиториях:
package.json
;node_modules
;При COPY node_modules
в Docker попадают все зависимости, даже если сервис использует только малую часть.
📦 Это:
nsc-fast-install
:
start.js
и все require()/import
;dist/node_modules
.npm i @lad-tech/nsc-fast-install -D
# указываем точку входа
npx nsc-fast-install --entryPoint services/AuthService/start.ts
# или указываем папку сервиса (ищет main из package.json)
npx nsc-fast-install --service services/AuthService
Способ | Как работает |
---|---|
--entryPoint | Путь до исходного TS-файла (start.ts ) |
--service | Указывает папку, внутри которой будет найдён main в package.json |
main | Должен вести на dist/.../start.js — собранный JS-файл, не .ts |
❗️Важно | Анализ производится по JS, а не по TypeScript-коду |
// services/AuthService/package.json
{
"main": "dist/AuthService/start.js"
}
❌ Вы указали .ts
, но не собрали проект
Ошибка:
outDir не найден
илиstart.js не существует
✅ Решение: выполните tsc
или npm run build
перед вызовом
❌ main
отсутствует или указывает на несуществующий файл
✅ Решение: добавьте main
в package.json
сервиса или используйте --entryPoint
❌ Некорректные импорты (например, с ошибками в RegExp)
✅ Убедитесь, что транспиляция прошла успешно и код валиден (analyze выполняется Babel'ом)
Флаг | Тип | Описание |
---|---|---|
--entryPoint | string | Путь до start.ts |
--service | string | Путь до папки сервиса |
--output | string | Папка назначения node_modules (по умолчанию — dist/ ) |
--exclude | string | Исключить сервисы, через , |
--tsconfig | string | Имя tsconfig.json |
--verbose | boolean | Расширенный лог |
--dryRun | boolean | Не копировать, только показать |
FAQs
Fast dependencies install for builds docker images of monorepo
We found that @lad-tech/nsc-fast-install demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.