ae-cvss-calculator
Version:
A CVSS vector modeling and score calculation implementation for all CVSS versions by {metæffekt}.
93 lines (92 loc) • 4.52 kB
TypeScript
import { ComponentCategory, CvssVector, MultiScoreResult, VectorComponent, VectorComponentValue } from "../CvssVector";
export declare class Cvss3P0 extends CvssVector<MultiScoreResult> {
private static readonly SCOPE_CHANGED_FACTOR;
private static readonly SCOPE_UNCHANGED_FACTOR;
private static readonly EXPLOITABILITY_COEFFICIENT;
private static readonly SCOPE_COEFFICIENT;
constructor(initialVector?: string);
getRegisteredComponents(): Map<ComponentCategory, VectorComponent<VectorComponentValue>[]>;
getVectorPrefix(): string;
getVectorName(): string;
fillAverageVector(): void;
fillRandomBaseVector(): void;
fillRandomTemporalVector(): void;
fillRandomEnvironmentalVector(): void;
fillRandomComponentsForCategory(category: ComponentCategory): void;
protected calculateScoresInternal(normalize?: boolean): MultiScoreResult;
calculateExactBaseScore(): number;
calculateImpactScore(): number;
calculateExactImpactScore(): number;
calculateExactISSScore(): number;
calculateExactMISSScore(): number;
calculateExactExploitabilityScore(): number;
calculateExactTemporalScore(): number;
calculateExactEnvironmentalScore(): number;
calculateExactAdjustedImpactScore(): number;
calculateAdjustedExploitability(): number;
isModifiedScope(): boolean;
calculateExactOverallScore(): number;
isBaseFullyDefined(): boolean;
isTemporalFullyDefined(): boolean;
isEnvironmentalFullyDefined(): boolean;
isAnyBaseDefined(): boolean;
isAnyTemporalDefined(): boolean;
isAnyEnvironmentalDefined(): boolean;
protected roundUp1(d: number): number;
private getJsonSchemaSeverity;
createJsonSchema(): JSONSchemaForCommonVulnerabilityScoringSystemVersion30;
}
export type AttackVectorType = "NETWORK" | "ADJACENT_NETWORK" | "LOCAL" | "PHYSICAL";
export type AttackComplexityType = "HIGH" | "LOW";
export type PrivilegesRequiredType = "HIGH" | "LOW" | "NONE";
export type UserInteractionType = "NONE" | "REQUIRED";
export type ScopeType = "UNCHANGED" | "CHANGED";
export type CiaType = "NONE" | "LOW" | "HIGH";
export type ScoreType = number;
export type SeverityType = "NONE" | "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
export type ExploitCodeMaturityType = "UNPROVEN" | "PROOF_OF_CONCEPT" | "FUNCTIONAL" | "HIGH" | "NOT_DEFINED";
export type RemediationLevelType = "OFFICIAL_FIX" | "TEMPORARY_FIX" | "WORKAROUND" | "UNAVAILABLE" | "NOT_DEFINED";
export type ConfidenceType = "UNKNOWN" | "REASONABLE" | "CONFIRMED" | "NOT_DEFINED";
export type CiaRequirementType = "LOW" | "MEDIUM" | "HIGH" | "NOT_DEFINED";
export type ModifiedAttackVectorType = "NETWORK" | "ADJACENT_NETWORK" | "LOCAL" | "PHYSICAL" | "NOT_DEFINED";
export type ModifiedAttackComplexityType = "HIGH" | "LOW" | "NOT_DEFINED";
export type ModifiedPrivilegesRequiredType = "HIGH" | "LOW" | "NONE" | "NOT_DEFINED";
export type ModifiedUserInteractionType = "NONE" | "REQUIRED" | "NOT_DEFINED";
export type ModifiedScopeType = "UNCHANGED" | "CHANGED" | "NOT_DEFINED";
export type ModifiedCiaType = "NONE" | "LOW" | "HIGH" | "NOT_DEFINED";
export interface JSONSchemaForCommonVulnerabilityScoringSystemVersion30 {
/**
* CVSS Version
*/
version: "3.0";
vectorString: string;
baseScore: ScoreType;
temporalScore?: ScoreType;
environmentalScore?: ScoreType;
baseSeverity: SeverityType;
temporalSeverity?: SeverityType;
environmentalSeverity?: SeverityType;
attackVector?: AttackVectorType;
attackComplexity?: AttackComplexityType;
privilegesRequired?: PrivilegesRequiredType;
userInteraction?: UserInteractionType;
scope?: ScopeType;
confidentialityImpact?: CiaType;
integrityImpact?: CiaType;
availabilityImpact?: CiaType;
exploitCodeMaturity?: ExploitCodeMaturityType;
remediationLevel?: RemediationLevelType;
reportConfidence?: ConfidenceType;
confidentialityRequirement?: CiaRequirementType;
integrityRequirement?: CiaRequirementType;
availabilityRequirement?: CiaRequirementType;
modifiedAttackVector?: ModifiedAttackVectorType;
modifiedAttackComplexity?: ModifiedAttackComplexityType;
modifiedPrivilegesRequired?: ModifiedPrivilegesRequiredType;
modifiedUserInteraction?: ModifiedUserInteractionType;
modifiedScope?: ModifiedScopeType;
modifiedConfidentialityImpact?: ModifiedCiaType;
modifiedIntegrityImpact?: ModifiedCiaType;
modifiedAvailabilityImpact?: ModifiedCiaType;
[k: string]: unknown;
}