PrimusSaaS.Security.Reporting 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package PrimusSaaS.Security.Reporting --version 2.0.0
                    
NuGet\Install-Package PrimusSaaS.Security.Reporting -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PrimusSaaS.Security.Reporting" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PrimusSaaS.Security.Reporting" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="PrimusSaaS.Security.Reporting" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PrimusSaaS.Security.Reporting --version 2.0.0
                    
#r "nuget: PrimusSaaS.Security.Reporting, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PrimusSaaS.Security.Reporting@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PrimusSaaS.Security.Reporting&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=PrimusSaaS.Security.Reporting&version=2.0.0
                    
Install as a Cake Tool

PrimusSaaS.Security.Reporting

Security reporting, compliance mapping, and governance dashboards for the Primus Security Suite

.NET 8.0 License: MIT

Overview

The Security.Reporting package transforms raw security scan results into actionable reports for security teams and compliance officers. Generate executive summaries, compliance reports, and detailed vulnerability findings with built-in support for OWASP, PCI DSS, HIPAA, SOC 2, and GDPR frameworks.

Features

  • ๐Ÿ“Š 5 Export Formats: PDF, HTML, JSON, CSV, SARIF
  • โœ… 5 Compliance Frameworks: OWASP Top 10, PCI DSS 4.0, HIPAA, SOC 2, GDPR
  • ๐Ÿ“ˆ Security Posture Scoring: 0-100 scale based on vulnerability severity and coverage
  • ๐Ÿ“‰ Trend Analysis: Historical metrics, fix rates, security debt tracking
  • ๐ŸŽฏ Executive Dashboards: High-level summaries for leadership
  • ๐Ÿ” Detailed Reports: Code snippets, remediation guidance, impact analysis

Installation

dotnet add package PrimusSaaS.Security.Reporting

Quick Start

using PrimusSaaS.Security;
using PrimusSaaS.Security.Reporting;

// Run security scan
var scanner = new SecurityScanner();
var scanResult = await scanner.ScanAsync("./MyProject");

// Generate comprehensive report
var reportingService = new ReportingService();
var report = await reportingService.GenerateReportAsync(scanResult);

Console.WriteLine($"Security Posture Score: {report.Metrics.SecurityPostureScore}/100");
Console.WriteLine($"Total Vulnerabilities: {report.Metrics.TotalVulnerabilities}");

// Export to PDF
var pdfBytes = await reportingService.ExportReportAsync(report, ExportFormat.PDF);
await File.WriteAllBytesAsync("security-report.pdf", pdfBytes);

// Check OWASP compliance
var owaspScore = await reportingService.GetComplianceReportAsync("OWASP");
Console.WriteLine($"OWASP Compliance: {owaspScore.Score}%");

Compliance Frameworks

Framework Coverage Controls Mapped
OWASP Top 10 2021 โœ… Full All 13 analyzers
PCI DSS 4.0 โœ… Full Requirement 6.5
HIPAA Security Rule โœ… Full ยง164.308-312
SOC 2 Trust Principles โœ… Full CC6.6, CC6.7, CC7.1
GDPR Article 32 โœ… Full Security measures

Export Formats

PDF

var pdf = await reportingService.ExportReportAsync(report, ExportFormat.PDF);

HTML (Interactive Dashboard)

var html = await reportingService.ExportReportAsync(report, ExportFormat.HTML);

JSON (API Integration)

var json = await reportingService.ExportReportAsync(report, ExportFormat.JSON);

SARIF (Industry Standard)

var sarif = await reportingService.ExportReportAsync(report, ExportFormat.SARIF);
// Upload to GitHub Security tab

CI/CD Integration

GitHub Actions

- name: Security Scan with Reporting
  run: |
    dotnet tool install --global PrimusSaaS.Security.CLI
    primus-security scan ./src --report-format SARIF --output security.sarif
    
- name: Upload to GitHub Security
  uses: github/codeql-action/upload-sarif@v2
  with:
    sarif_file: security.sarif

Azure DevOps

- task: DotNetCoreCLI@2
  displayName: 'Security Scan'
  inputs:
    command: 'custom'
    custom: 'primus-security'
    arguments: 'scan $(Build.SourcesDirectory) --report-format HTML --output $(Build.ArtifactStagingDirectory)/security-report.html'

Metrics & Trend Analysis

// Get security metrics for last 30 days
var metrics = await reportingService.GetMetricsAsync(
    startDate: DateTime.UtcNow.AddDays(-30)
);

// Get vulnerability trends
var trends = await reportingService.GetTrendsAsync(
    period: TimeSpan.FromDays(90),
    type: TrendType.Vulnerability
);

foreach (var dataPoint in trends.DataPoints)
{
    Console.WriteLine($"{dataPoint.Timestamp}: {dataPoint.Value} vulnerabilities");
}

Status

๐Ÿšง Phase 1 Complete - Core infrastructure, models, and APIs implemented
๐Ÿ“‹ Next: Phase 2 - Report generators and compliance mapping

License

MIT ยฉ Primus Software Corporation

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PrimusSaaS.Security.Reporting:

Package Downloads
PrimusSaaS.Security.Api

Versioned REST API (v1) for PrimusSaaS.Security. Provides minimal-API endpoints for scans, findings, suppressions, and policy โ€” registerable via MapPrimusSecurityApi().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 164 4/19/2026
2.2.0 130 3/11/2026
2.0.0 129 1/12/2026

v2.0.0:
- Standardized Framework Release.
- Renamed all packages to PrimusSaaS.* namespace.
- Synchronized versions across the entire suite.
- Enhanced metadata and fixed consistency issues.