Benign python Download

filter-stub-application 0.2.18

imports osParses JSON data with Python

Evidence

imports os lines 1–17
1import json
2import logging
3from enum import Enum
4import os
5
6from hypothesis_jsonschema import from_schema
7from openfilter.filter_runtime.filter import FilterConfig, Filter, Frame
8
9__all__ = ["FilterStubApplicationConfig", "FilterStubApplication"]
10
11logger = logging.getLogger(__name__)
12logger.setLevel(logging.INFO)
13
14
15class FilterStubApplicationConfig(FilterConfig):
16 debug: bool = False # Debug mode
17 forward_upstream_dat …
Long base64 string literal lines 34–42
34:43… events
35
36 @classmethod
37 def from_str(cls, value: str) -> "FilterStubApplicationOutputMode":
38 try:
39 return cls(value.strip().lower())
40 except ValueError:
41 raise ValueError(
42 …
Python file opened for write or append lines 129–138
129:43… output_json_path)
130 if output_dir and not os.path.exists(output_dir):
131 os.makedirs(output_dir, exist_ok=True)
132
133 # Clear the output file
134 with open(self.output_json_path, "w") as f:
135 pass # Just create/clear the file
136
137 if self.output_mode == FilterStubApplicationOutputMode.ECHO:
138 …
Python json.load call lines 142–147
142:50… nts_file_path, "r") as f:
143 self.events = json.load(f)
144 logger.info(f"Loaded {len(self.events)} events from input file as JSON array.")
145 except json.JSONDecodeError:
146 # If that fails, try loading as JSON Lines format (one JSON object per line)
147 self.eve …
Parses JSON data with Python lines 152–155
152:18… try:
153 event = json.loads(line)
154 self.events.append(event)
155 except json.JSONDecodeError …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.