# Czech Security Alerts (NÚKIB, CSIRT.CZ) (`aletheie/czech-security-alerts`) Actor

Downloads cybersecurity warnings and notices from NÚKIB and CSIRT.CZ and saves them as structured data: date, severity, affected products and CVE numbers.

- **URL**: https://apify.com/aletheie/czech-security-alerts.md
- **Developed by:** [Anna Jungmannová](https://apify.com/aletheie) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Scrapes security warnings from [NÚKIB](https://nukib.gov.cz/cs/infoservis/hrozby/) and [CSIRT.CZ](https://csirt.cz/cs/kyberbezpecnost/aktualne-z-bezpecnosti/) into structured records: date, severity, affected products, CVEs. It can also post the new alerts to Slack or a webhook, so a daily schedule gives you a morning digest.

### Output

One record per alert:

| Field              | Description                                                                   |
| ------------------ | ----------------------------------------------------------------------------- |
| `source`           | `NÚKIB` or `CSIRT.CZ`                                                         |
| `alertType`        | `warning` (NÚKIB varování), `notice` (upozornění), `news` (CSIRT.CZ), `other` |
| `title`, `url`     | Title and link to the original                                                |
| `publishedAt`      | `YYYY-MM-DD`                                                                  |
| `severity`         | `critical`, `high`, `medium`, `low`, `unknown`                                |
| `severitySource`   | `cvss`, `keywords` or `none`                                                  |
| `cvssScores`       | CVSS scores found in the text                                                 |
| `categories`       | e.g. `web`, `linux`, `network` (list below)                                   |
| `affectedProducts` | e.g. `Microsoft Exchange`, `Fortinet`                                         |
| `cves`             | e.g. `CVE-2020-1350`                                                          |
| `summary`, `text`  | First ~400 characters, full text                                              |
| `scrapedAt`        | Download time                                                                 |

```json
{
    "source": "CSIRT.CZ",
    "alertType": "news",
    "title": "Kritická zranitelnost v GitLabu umožňuje vzdálené spuštění kódu",
    "url": "https://csirt.cz/cs/kyberbezpecnost/aktualne-z-bezpecnosti/kriticka-zranitelnost-v-gitlabu-umoznuje-vzdalene-spusteni-kodu/",
    "publishedAt": "2026-10-14",
    "severity": "critical",
    "severitySource": "cvss",
    "cvssScores": [10],
    "categories": ["web"],
    "affectedProducts": ["GitLab"],
    "cves": ["CVE-2026-97229"],
    "summary": "Společnost GitLab vydala bezpečnostní aktualizace opravující 24 zranitelností…",
    "text": "Společnost GitLab vydala bezpečnostní aktualizace…",
    "scrapedAt": "2026-11-03T09:40:12.000Z"
}
```

#### Where severity, products and categories come from

Neither source publishes them, so they're guessed from the text. Check the original before acting on them.

- **Severity:** highest CVSS score wins (9.0+ critical, 7.0+ high, 4.0+ medium, else low). Without a score, Czech wording decides ("kritická zranitelnost" → critical, "závažná chyba" / "aktivně zneužívaná" → high). NÚKIB *varování* is always at least high. "kritická infrastruktura" doesn't count. Nothing matched → `unknown` (typical for news and phishing).
- **Products:** a dictionary of ~70 vendors and products (Windows, Exchange, Fortinet, Citrix, Ivanti, VMware, GitLab, Linux distros…), including Czech word forms like "GitLabu". Anything else isn't listed.
- **Categories:** derived from products and keywords; one alert can have several. `microsoft`/`apple` need an actual product match, so phishing that impersonates Microsoft isn't tagged `microsoft`.

Categories: `web` (WordPress, GitLab, Confluence, PHP, Log4j), `linux` (kernel, distros, sudo, Samba), `microsoft` (Windows, Exchange, Office, SMB), `apple`, `mobile`, `browser`, `network` (Fortinet, Cisco, Citrix, Ivanti, routers), `virtualization` (VMware, Veeam), `email`, `hardware` (CPUs, NAS, firmware), `phishing`, `malware`, `ddos`.

### Input

| Field                  | Default             | Description                                                 |
| ---------------------- | ------------------- | ----------------------------------------------------------- |
| `sources`              | `["nukib","csirt"]` | Which sites to scrape                                       |
| `period`               | `last30days`        | `sinceLastRun`, `last24h`, `last7days`, `last30days`, `all` |
| `categories`           | all                 | Keep only these categories                                  |
| `maxItemsPerSource`    | `20`                | Cap per source and run, `0` = no limit                      |
| `dateFrom`             | –                   | Fixed start date `YYYY-MM-DD`, overrides `period`           |
| `slackWebhookUrl`      | –                   | Slack Incoming Webhook URL                                  |
| `webhookUrl`           | –                   | Any http(s) URL, gets one JSON POST per run                 |
| `webhookHeaders`       | –                   | Extra headers, e.g. `{"Authorization": "Bearer …"}`         |
| `webhookIncludeText`   | `false`             | Include `text` in the webhook payload                       |
| `notifyMinSeverity`    | `all`               | Notify only from this severity up                           |
| `notifyWhenEmpty`      | `false`             | Send a message even when nothing is new                     |
| `notificationLanguage` | `cs`                | Slack message language, `cs` or `en`                        |
| `maxConcurrency`       | `3`                 | Parallel requests                                           |
| `proxyConfiguration`   | no proxy            | Not needed, both sites are public                           |

### Only new alerts

`sinceLastRun` returns only alerts no earlier run has saved, so repeated runs don't produce duplicates. Use it for scheduled runs and notifications; the default `last30days` is meant for one-off runs.

- State lives in the `czech-security-alerts-state` key-value store, one record per combination of sources and categories. Tasks with different categories are tracked separately.
- First run returns the last 24 hours.
- State is saved only after a successful run (including successful notifications). Aborted or failed runs mark nothing as seen.
- Other periods update the state too.
- To start over, delete the record or the store in Console.

The sites publish dates without times, so windows are whole days in Prague time: "last 24 hours" means yesterday or today.

### Daily digest in Slack

1. Create a Slack app with **Incoming Webhooks** and add a webhook for your channel.
2. Create a Task for this Actor with `period: sinceLastRun` and the webhook in `slackWebhookUrl`.
3. Add a [Schedule](https://docs.apify.com/platform/schedules), e.g. `0 7 * * *`, time zone Europe/Prague.

The message lists new alerts by severity, each with link, severity, source, date, CVEs, products and summary. Big batches are split into several messages.

`webhookUrl` works the same way for n8n, Make, Zapier, Teams or your own API:

```json
{
    "event": "czech-security-alerts.new-alerts",
    "actorRunId": "aBcD1234",
    "runStartedAt": "2026-11-03T06:00:00.000Z",
    "period": "new since the last run on 2 Nov 2026, 07:00",
    "datasetUrl": "https://console.apify.com/storage/datasets/xYz5678",
    "alertCount": 1,
    "filteredOutBySeverity": 0,
    "alerts": [{ "source": "CSIRT.CZ", "title": "…", "severity": "critical", "…": "…" }]
}
```

`alerts` have the dataset fields, without `text` unless `webhookIncludeText` is on.

- URLs and headers are stored encrypted and never logged. `slackWebhookUrl` accepts only `https://hooks.slack.com/`.
- Nothing is sent when there's nothing new, unless `notifyWhenEmpty` is on.
- `notifyMinSeverity` filters notifications only, the dataset gets everything. `unknown` severity is sent only with `all`.
- If sending fails after retries, the run fails and nothing is marked as seen, so the next run sends it again.

### Cost

Plain HTML, Cheerio, no browser. A default run fetches ~45 pages in under a minute on minimal memory. NÚKIB has ~115 alerts in total; CSIRT.CZ has thousands back to 2017, so use `maxItemsPerSource` or `dateFrom` there.

### Notes

- Honest User-Agent, respects `robots.txt`, 1 s between requests per site.
- Credit NÚKIB or CSIRT.CZ when you republish (CSIRT.CZ is CC BY-SA 3.0).
- Only Czech versions are scraped. A site redesign can break the Actor until it's updated.

### Development

```bash
pnpm install
apify run       # input from storage/key_value_stores/default/INPUT.json
pnpm test       # unit tests, no network
pnpm lint
pnpm format
```

# Actor input Schema

## `sources` (type: `array`):

Which publishers to download alerts from. NÚKIB publishes formal warnings (varování) and notices (upozornění); CSIRT.CZ publishes security news (Aktuálně z bezpečnosti).

## `period` (type: `string`):

Which alerts to download. "New since last run" returns only alerts that earlier runs have not saved yet (on the first run it falls back to the last 24 hours). The sources publish dates without times, so "Last 24 hours" means published yesterday or today (Prague time). Ignored when "Published on or after" is set. For scheduled runs and notifications, use "New since last run".

## `categories` (type: `array`):

Only return alerts from these areas. Leave empty to return all alerts. Categories are inferred from the products and keywords in the alert text, so one alert can belong to several categories.

## `maxItemsPerSource` (type: `integer`):

Safety cap on the number of alerts saved from each source in one run. When Categories are set, only matching alerts count. Use 0 for no limit.

## `dateFrom` (type: `string`):

Optional fixed start date (YYYY-MM-DD). When set, it overrides Period and alerts are returned even if an earlier run already saved them.

## `slackWebhookUrl` (type: `string`):

Slack Incoming Webhook URL (https://hooks.slack.com/services/...). Create one in your Slack app under Incoming Webhooks. When set, the Actor posts a formatted message with the new alerts to that channel. Stored encrypted.

## `webhookUrl` (type: `string`):

Any http(s) URL (n8n, Make, Zapier, Microsoft Teams workflow, your own API). When set, the Actor sends one JSON POST with all new alerts at the end of the run. Stored encrypted.

## `webhookHeaders` (type: `object`):

Extra HTTP headers for the webhook request, for example {"Authorization": "Bearer ..."}. Stored encrypted.

## `webhookIncludeText` (type: `boolean`):

Send the full alert text in the webhook payload. Off by default to keep the payload small; the summary is always included. Slack messages always show only the summary.

## `notifyMinSeverity` (type: `string`):

Only notify about alerts with at least this severity. All alerts are still saved to the dataset. Alerts with unknown severity (typically news and phishing notices) are sent only with "All".

## `notifyWhenEmpty` (type: `boolean`):

Also send a short "no new alerts" message, so you know the scheduled run worked.

## `notificationLanguage` (type: `string`):

Language of the Slack message labels and footer. The dataset and webhook payload use English codes (e.g. severity "high"), and alert titles and texts stay in Czech, because neither source publishes them in English.

## `maxConcurrency` (type: `integer`):

Maximum number of pages fetched in parallel. Both sites are small government/non-profit websites, so keep this low.

## `proxyConfiguration` (type: `object`):

Proxy settings. Both sites are publicly accessible, so no proxy is needed by default.

## Actor input object example

```json
{
  "sources": [
    "nukib",
    "csirt"
  ],
  "period": "last30days",
  "categories": [],
  "maxItemsPerSource": 20,
  "webhookIncludeText": false,
  "notifyMinSeverity": "all",
  "notifyWhenEmpty": false,
  "notificationLanguage": "cs",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `alerts` (type: `string`):

Structured alerts from NÚKIB and CSIRT.CZ.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("aletheie/czech-security-alerts").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "proxyConfiguration": { "useApifyProxy": False } }

# Run the Actor and wait for it to finish
run = client.actor("aletheie/czech-security-alerts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call aletheie/czech-security-alerts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aletheie/czech-security-alerts"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tmzoqx5GAqZ1jYVEk/builds/Xr57cEMni8NtzcvtG/openapi.json
