
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.
@golemio/audit-logs
Advanced tools
This module is intended for use with Golemio services. Refer here for further information on usage, local development and more.
The APIs may be unstable. Therefore, we recommend to install this module as an exact version.
# Latest version
npm install --save-exact @golemio/audit-logs@latest
# Development version
npm install --save-exact @golemio/audit-logs@dev
For local integration tests, run database migrations with the audit_logs
schema.
npx golemio migrate-db up --postgres --schema audit_logs
For information on how to use this module with default module schema migrations, see golemio-cli docs.
Configuring the database schema to use for audit logging using dependency injection:
// Di.ts
import { AuditLogsContainer } from "@golemio/audit-logs";
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
import { ILogger } from "@golemio/core/dist/helpers";
import { instanceCachingFactory } from "@golemio/core/dist/shared/tsyringe";
// ...create your module container
// ...register database connector for your module container
// ...register logger for your module container
YourModuleContainer.register("your_audit_logs_token", {
useFactory: instanceCachingFactory<AuditLogger>((c) => {
return new AuditLogger(
YourModuleContainer.resolve<IDatabaseConnector>("your_database_connector_token"),
YourModuleContainer.resolve<ILogger>("your_logger_token"),
{ schema: "your_module_database_schema" }
);
}),
});
The audit logger can then be used as follows:
// YourClass.ts
import { inject } from "@golemio/core/dist/shared/tsyringe";
import { AuditLogger } from "@golemio/audit-logs";
export class YourClass {
constructor(@inject("your_audit_logs_token") private auditLogger: AuditLogger) {}
async someMethod() {
await this.auditLogger.log({ action: "test-action", entity: "test-entity", userId: "test-user-id" /*, data: {...} */ });
}
}
Note that logging can be used only after your database connector has been connected to the database.
FAQs
Golemio Audit Logs Module
We found that @golemio/audit-logs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.