Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mattyopon_faultray /src /faultray /feeds /sources.py
| # Copyright (c) 2025-2026 Yutaro Maeda. All rights reserved. | |
| # Licensed under the Apache License 2.0. See LICENSE file for details. | |
| """Default security news feed sources.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass, field | |
| class FeedSource: | |
| """A security news RSS/Atom feed source.""" | |
| name: str | |
| url: str | |
| feed_type: str = "rss" # rss | atom | |
| enabled: bool = True | |
| tags: list[str] = field(default_factory=list) | |
| # Curated list of infrastructure/security incident feeds | |
| DEFAULT_SOURCES: list[FeedSource] = [ | |
| # --- Major incident / outage feeds --- | |
| FeedSource( | |
| name="CISA Alerts", | |
| url="https://www.cisa.gov/cybersecurity-advisories/all.xml", | |
| tags=["cve", "vulnerability", "government"], | |
| ), | |
| FeedSource( | |
| name="NIST NVD", | |
| url="https://nvd.nist.gov/feeds/xml/cve/misc/nvd-rss.xml", | |
| tags=["cve", "vulnerability"], | |
| ), | |
| FeedSource( | |
| name="The Hacker News", | |
| url="https://feeds.feedburner.com/TheHackersNews", | |
| tags=["security", "incident", "breach"], | |
| ), | |
| FeedSource( | |
| name="BleepingComputer", | |
| url="https://www.bleepingcomputer.com/feed/", | |
| tags=["security", "malware", "incident"], | |
| ), | |
| FeedSource( | |
| name="AWS Security Bulletins", | |
| url="https://aws.amazon.com/security/security-bulletins/feed/", | |
| feed_type="atom", | |
| tags=["aws", "cloud", "vulnerability"], | |
| ), | |
| FeedSource( | |
| name="Google Cloud Incidents", | |
| url="https://status.cloud.google.com/feed.atom", | |
| feed_type="atom", | |
| tags=["gcp", "cloud", "outage"], | |
| ), | |
| FeedSource( | |
| name="Krebs on Security", | |
| url="https://krebsonsecurity.com/feed/", | |
| tags=["security", "breach", "incident"], | |
| ), | |
| FeedSource( | |
| name="Ars Technica Security", | |
| url="https://feeds.arstechnica.com/arstechnica/security", | |
| tags=["security", "incident"], | |
| ), | |
| ] | |
| def get_enabled_sources() -> list[FeedSource]: | |
| """Return only enabled feed sources.""" | |
| return [s for s in DEFAULT_SOURCES if s.enabled] | |
Xet Storage Details
- Size:
- 2.13 kB
- Xet hash:
- 6f710487846739f034cbaca56a582fbc95e2d063d5bdc5d70f24d707fdf4c371
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.