syntax = "proto2";
import "yara.proto";
package olecf;
option (yara.module_options) = {
name : "olecf"
root_message: "olecf.Olecf"
cargo_feature: "olecf-module"
};
message Olecf {
// True if file is an OLE CF file.
required bool is_olecf = 1;
// Streams contained in the OLE CF file.
repeated Stream streams = 2;
}
// Type of streams.
enum StreamType {
UNKNOWN = 0;
STORAGE = 1;
STREAM = 2;
ROOT = 5;
}
// Describes a stream in the OLE CF file.
message Stream {
required string name = 1;
required StreamType type = 2;
required uint64 size = 3;
}