PrimusSaaS.Security.Reporting
2.0.0
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
<PackageReference Include="PrimusSaaS.Security.Reporting" Version="2.0.0" />
<PackageVersion Include="PrimusSaaS.Security.Reporting" Version="2.0.0" />
<PackageReference Include="PrimusSaaS.Security.Reporting" />
paket add PrimusSaaS.Security.Reporting --version 2.0.0
#r "nuget: PrimusSaaS.Security.Reporting, 2.0.0"
#:package PrimusSaaS.Security.Reporting@2.0.0
#addin nuget:?package=PrimusSaaS.Security.Reporting&version=2.0.0
#tool nuget:?package=PrimusSaaS.Security.Reporting&version=2.0.0
PrimusSaaS.Security.Reporting
Security reporting, compliance mapping, and governance dashboards for the Primus Security Suite
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
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
Related Packages
- PrimusSaaS.Security - Core security scanning with 13 analyzers
- PrimusSaaS.Security.AI - AI-powered vulnerability remediation
License
MIT ยฉ Primus Software Corporation
| Product | Versions 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. |
-
net8.0
- CsvHelper (>= 30.0.1)
- Microsoft.EntityFrameworkCore (>= 8.0.0)
- Microsoft.EntityFrameworkCore.Sqlite (>= 8.0.0)
- PrimusSaaS.Security (>= 2.0.0)
- System.Text.Json (>= 8.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v2.0.0:
- Standardized Framework Release.
- Renamed all packages to PrimusSaaS.* namespace.
- Synchronized versions across the entire suite.
- Enhanced metadata and fixed consistency issues.