Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Ap6pack_malwar /src /malwar /scanner /base.py
| """Abstract base detector interface for all detection layers.""" | |
| from __future__ import annotations | |
| from abc import ABC, abstractmethod | |
| from malwar.models.finding import Finding | |
| from malwar.scanner.context import ScanContext | |
| class BaseDetector(ABC): | |
| """All detection layers must implement this interface.""" | |
| def layer_name(self) -> str: | |
| """Unique identifier for this detection layer.""" | |
| ... | |
| def order(self) -> int: | |
| """Execution order (lower runs first).""" | |
| ... | |
| async def detect(self, context: ScanContext) -> list[Finding]: | |
| """Analyze the scan context and return findings.""" | |
| ... | |
| async def setup(self) -> None: | |
| """Optional initialization.""" | |
| async def teardown(self) -> None: | |
| """Optional cleanup.""" | |
Xet Storage Details
- Size:
- 886 Bytes
- Xet hash:
- 2a1ed18bec3283f10c94715d30782c28fd28add3c833e8deeeab71965025e5b2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.