
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.
@braken/injection
Advanced tools
Braken 框架的依赖注入模块,提供 IoC 容器和依赖注入支持。
pnpm add @braken/injection
import { Injectable, Inject } from '@braken/injection';
@Injectable()
class UserService {
@Inject()
private logger: Logger;
async findUser(id: string) {
this.logger.info('Finding user', { id });
// 查找用户逻辑
}
}
@Injectable()
class UserController {
@Inject()
private userService: UserService;
async getUser(id: string) {
return this.userService.findUser(id);
}
}
@Injectable: 标记可注入类@Inject: 注入依赖@Optional: 标记可选依赖@Scope: 定义作用域@PostConstruct: 构造后回调@PreDestroy: 销毁前回调import { Container } from '@braken/injection';
const container = new Container();
// 注册服务
container.register(UserService);
container.register(UserController);
// 获取实例
const userController = container.get(UserController);
MIT
FAQs
somethings
We found that @braken/injection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.