{
  "tool": "msc-software--cybersecurity.ale_rosi",
  "name": "Annualised loss expectancy and return on security investment (CDU-ICT-SEC-900)",
  "answers": "What loss does this threat cost a year, before and after the control, and does the control pay for itself?",
  "degree": {
    "id": "competency:msc-software--cybersecurity",
    "code": "CDU-ICT-SEC-900",
    "name": "MSc Software & Cybersecurity",
    "version": "1.0.0"
  },
  "reference": "NIST SP 800-30 Rev. 1 (likelihood × impact); ISC² CISSP CBK quantitative risk analysis (SLE, ARO, ALE); Sonnenreich, Albanese & Stout (2006) ROSI",
  "endpoint": "/faculty/msc-software--cybersecurity/ale_rosi",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "assetValue",
      "exposureFactor",
      "annualRateBefore",
      "annualRateAfter",
      "annualControlCost"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "assetValue": {
        "type": "number",
        "description": "Value of the asset at risk",
        "minimum": 0
      },
      "exposureFactor": {
        "type": "number",
        "description": "Fraction of value lost per incident, 0–1",
        "minimum": 0,
        "maximum": 1
      },
      "annualRateBefore": {
        "type": "number",
        "description": "Incidents per year without the control",
        "minimum": 0
      },
      "annualRateAfter": {
        "type": "number",
        "description": "Incidents per year with the control",
        "minimum": 0
      },
      "annualControlCost": {
        "type": "number",
        "description": "Annual cost of the control",
        "minimum": 0.01
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "singleLossExpectancy",
      "aleBefore",
      "aleAfter",
      "rosi"
    ],
    "properties": {
      "singleLossExpectancy": {
        "type": "number",
        "description": "Asset value × exposure factor"
      },
      "aleBefore": {
        "type": "number",
        "description": "SLE × ARO before"
      },
      "aleAfter": {
        "type": "number",
        "description": "SLE × ARO after"
      },
      "rosi": {
        "type": "number",
        "description": "(ALE before − ALE after − cost) ÷ cost"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "assetValue": 2000000,
    "exposureFactor": 0.35,
    "annualRateBefore": 0.5,
    "annualRateAfter": 0.1,
    "annualControlCost": 90000
  }
}