
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.
@itgenio/edik-compiler
Advanced tools
Браузерный компилятор, собирающий CJS модули для работы с install
Для сборки JS используется esbuild-wasm.
Для сборки CSS используется less.
На выходе получается файл с названием [name].[hash].js
, например:
type CompilerFile = { name: string; content: string };
const someFiles: CompilerFile[] = [
{
name: 'index.js',
content: `
import { logger } from './utils/logger.js';
console.log(logger());
`,
},
{
name: 'utils/logger.js',
content: `
export const logger = () => 'logs';
`,
},
];
const moduleFile: CompilerFile = {
name: 'index.KLIO2BFQ.js',
content: `edikInstall({'node_modules':{'index.KLIO2BFQ.js'(require,exports,module) {
const logger = () => 'logs';
console.log(logger());
}}},{extensions:['.js','.css','.less','.ts','.json']})`,
};
На выходе получается файл с названием style.css
В сборке участвуют следующие типы ресурсов:
Эти ресурсы могут быть расположены на любом уровне вложенности.
Существуют специальные папки, которые меняют правила сборки:
редактор
| packages/some-component/index.js -> './packages/some-component/index.js'
| folder
| utils.js -> './folder/utils.js'
| main.js -> './main.js'
entrypoint.js
(невидимый), в котором импортируем все файлы. Порядок не имеет значения, так как далее будет строиться дерево зависимостей и код скомпилируется в нужном порядке.import './packages/some-component/index.js';
import './folder/utils.js';
import './main.js';
entrypoint.js
передаются в ESBuild чтобы собрались файлы исполнения (executable files
). Эти файлы далее будут запущены на выполнение с помощью Executor-ов.FAQs
Web-based compiler for Edik resources
The npm package @itgenio/edik-compiler receives a total of 1 weekly downloads. As such, @itgenio/edik-compiler popularity was classified as not popular.
We found that @itgenio/edik-compiler demonstrated a not healthy version release cadence and project activity because the last version was released 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.