Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@nathapp/nestjs-audit

Latest version: v4.6.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: skywills87
17 Versions
1.4K Downloads

Scan summary

@nathapp/nestjs-audit was last scanned on 27 Nov 2026 at version 4.6.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 5 were published within 6 days (22–27 Nov 2026).
  • Findings: No rules fired in version 4.6.1.
  • Downloads: 1,387 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.6.1 LATEST 27 Nov 2026 No rules fired
4.6.0 27 Nov 2026 No rules fired
4.5.1 24 Nov 2026 No rules fired
4.5.0 23 Nov 2026 Not shown
4.4.0 22 Nov 2026 Not shown

No rules fired in 4.6.1

Findings

Findings for v4.6.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.6.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@nathapp/nestjs-audit

Decorator-driven, storage-agnostic audit logging for NestJS applications.

Features

  • Declarative capture — @Audit({ action, resource? }) on a controller/service method, picked up by AuditInterceptor
  • Pluggable storage — IAuditStorage seam; ships InMemoryAuditStorage (default) and LoggerAuditStorage; bring your own Prisma/TypeORM-backed storage
  • Pluggable actor resolution — IAuditActorResolver seam; ships DefaultActorResolver (req.user?.id ?? 'anonymous')
  • Never fails the request — audit storage write failures are caught and logged, not propagated to the response
  • Correlation-id aware — reads @nathapp/nestjs-logging's request-scoped correlation id automatically

Installation

npm install @nathapp/nestjs-audit @nathapp/nestjs-common @nathapp/nestjs-logging

Peer requirements: ClockModule and LoggingModule. AuditModule does not import ClockModule itself — AuditInterceptor depends on the CLOCK token from @nathapp/nestjs-common, and expects it to already be available in your application's module tree. Register ClockModule.register() in your root module's imports if it is not already available. Opt-in LoggerAuditStorage likewise needs a Logger from @nathapp/nestjs-logging: it resolves the exported Logger class — register LoggingModule.register() (or its async equivalent) in your module tree — and also accepts a provider registered under the LOGGER_SERVICE token, so an app that supplies that token directly can inject the storage without importing the logging module. When both are available the Logger class wins; when neither is available, constructing the storage fails with an error that names LoggerAuditStorage. Manual construction, new LoggerAuditStorage(logger), still works with a single logger argument. ClockModule is global: true, so apps using nestjs-common's clock seam often already satisfy the clock requirement.

Quick Start

import { Module } from '@nestjs/common';
import { AuditModule } from '@nathapp/nestjs-audit';

@Module({
  imports: [AuditModule.register()],
})
export class AppModule {}
import { Audit, AuditInterceptor } from '@nathapp/nestjs-audit';

@Controller('users')
@UseInterceptors(AuditInterceptor)
export class UsersController {
  @Audit({ action: 'USER_UPDATED', resource: 'user', resourceIdParam: 'id' })
  @Patch(':id')
  updateUser(@Param('id') id: string, @Body() dto: UpdateUserDto) {
    return this.usersService.update(id, dto);
  }
}

Custom storage

import { AuditModule } from '@nathapp/nestjs-audit';

@Module({
  imports: [
    AuditModule.registerAsync({
      useFactory: (prisma: PrismaService) => ({ storage: new PrismaAuditStorage(prisma) }),
      inject: [PrismaService],
    }),
  ],
})
export class AppModule {}

Scope

v1 does not include automatic before/after state diffing — pass whatever context you need through IAuditStorage directly if you need it, since AuditEntry.metadata is available to any direct storage consumer (not populated by AuditInterceptor itself, since @Audit() options are static and set at method-definition time).

Security

AuditEntry.metadata and the built-in LoggerAuditStorage write whatever is passed through verbatim (including to structured logs). Do not put secrets, API keys, passwords, or other sensitive personally-identifiable information into metadata — treat it the same way you would any other logged field.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @nathapp/nestjs-audit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229