MalInt
    Preparing search index...

    Class MalInt

    Main entry point for interacting with a MaaS repository through a forge.

    Index

    Methods

    • Dispatches the server container build workflow. Returns an active container build if one is already running.

      Parameters

      • registryCredentials: { password: string; url: string; username: string }

      Returns Promise<Result<number, BuildContainerError>>

    • Writes the malware configuration and dispatches the malware build workflow.

      Parameters

      • configuration: object

      Returns Promise<Result<number, BuildMalwareError>>

    • Loads client-side configuration definitions from the repository.

      Returns Promise<
          Result<
              | {
                  malware?: { schema: object; ui: object };
                  server?: { schema: object; ui: object };
              }
              | undefined,
              GetConfigurationsError,
          >,
      >

    • Returns generated server variables marked as plaintext.

      Returns Promise<
          Result<
              { name: string; path: string[]; value: unknown }[],
              GenerateServerConfigurationError,
          >,
      >

    • Returns generated server variables marked as secrets.

      Returns Promise<
          Result<
              { name: string; path: string[]; value: unknown }[],
              GenerateServerConfigurationError,
          >,
      >

    • Loads server-side configuration definitions from the repository.

      Returns Promise<Result<{ malware: object; server?: object }, GetConfigurationsError>>

    • Loads state configuration definitions from the repository.

      Returns Promise<
          Result<
              | {
                  instance?: { schema: object; ui: object };
                  victims?: { schema: object; ui: object };
              }
              | undefined,
              GetConfigurationsError,
          >,
      >

    • Sets the hostname used by networking handlers.

      Parameters

      • hostname: string

      Returns Result<void, ZodError<unknown>>

    • Polls a container build run until it completes.

      Parameters

      • runIdentifier: number
      • pollInterval: number = 5000

      Returns Promise<Result<void, WaitForContainerError>>

    • Polls a malware build run until it completes and downloads the artifact.

      Parameters

      • runIdentifier: number
      • pollInterval: number = 5000

      Returns Promise<Result<Buffer<ArrayBufferLike>, WaitForMalwareError>>