* feat(artifacts): inspect PE resource identities and payload ranges * fix(artifacts): reject header payloads overlapping PE sections --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
20 lines
612 B
TypeScript
20 lines
612 B
TypeScript
import type {
|
|
ExecutionOptions,
|
|
ProviderIdentity,
|
|
} from "../AnalysisProvider.js";
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import type {
|
|
InspectPeResourcesInput,
|
|
PeResources,
|
|
} from "../../domain/native/peResources.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
|
|
/** Stable read and PE decoding boundary, independent of an active disassembler session. */
|
|
export interface PeResourcesPort {
|
|
readonly identity: ProviderIdentity;
|
|
inspect(
|
|
input: InspectPeResourcesInput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<PeResources, AnalysisError>>;
|
|
}
|