@mitre/hdf-converters 2.6.10 → 2.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitre/hdf-converters",
3
- "version": "2.6.10",
3
+ "version": "2.6.13",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Converter util library used to transform various scan results into HDF format",
6
6
  "files": [
@@ -0,0 +1,42 @@
1
+ import { HDFControlSegment } from 'inspecjs';
2
+ import { ILookupPathFH } from '../reverse-base-converter';
3
+ export declare type SplunkControl = {
4
+ meta: Meta;
5
+ code: string;
6
+ desc: string;
7
+ descriptions: Record<string, string>[] | ILookupPathFH;
8
+ id: string;
9
+ impact: number;
10
+ refs: any[] | ILookupPathFH;
11
+ results?: HDFControlSegment[] | ILookupPathFH;
12
+ source_location?: any;
13
+ tags: Tags;
14
+ };
15
+ export declare type Meta = {
16
+ guid: string;
17
+ filename: string;
18
+ filetype: string;
19
+ subtype: string;
20
+ profile_sha256: string;
21
+ hdf_splunk_schema: string;
22
+ status: string;
23
+ is_waived: boolean;
24
+ is_baseline: boolean;
25
+ overlay_depth: number;
26
+ };
27
+ export declare type Result = {
28
+ code_desc: string;
29
+ run_time: number;
30
+ start_time: Date;
31
+ status: string;
32
+ resource: string;
33
+ message: string;
34
+ skip_message: string;
35
+ exception: string;
36
+ backtrace: null;
37
+ };
38
+ export declare type Tags = {
39
+ check?: string;
40
+ fix?: string;
41
+ nist?: string[];
42
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=splunk-control-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"splunk-control-types.js","sourceRoot":"","sources":["../../../../src/converters-from-hdf/splunk/splunk-control-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,52 @@
1
+ import { ILookupPathFH } from '../reverse-base-converter';
2
+ export declare type SplunkProfile = {
3
+ meta: Meta;
4
+ summary: string;
5
+ sha256: string;
6
+ supports: any[] | ILookupPathFH;
7
+ name: string;
8
+ copyright: string;
9
+ maintainer: string;
10
+ copyright_email: string;
11
+ version: string;
12
+ license: string;
13
+ title: string;
14
+ parent_profile: string;
15
+ depends: Depend[] | ILookupPathFH;
16
+ attributes: Attribute[] | ILookupPathFH;
17
+ groups: Group[] | ILookupPathFH;
18
+ status: string;
19
+ };
20
+ export declare type Attribute = {
21
+ name: string;
22
+ options: Options;
23
+ };
24
+ export declare type Options = {
25
+ default: string;
26
+ required: boolean;
27
+ type: string;
28
+ };
29
+ export declare type Depend = {
30
+ name: string;
31
+ url: string;
32
+ git: string;
33
+ branch: string;
34
+ path: string;
35
+ skip_message: string;
36
+ status: string;
37
+ supermarket: string;
38
+ compliance: string;
39
+ };
40
+ export declare type Group = {
41
+ controls: string[];
42
+ id: string;
43
+ };
44
+ export declare type Meta = {
45
+ guid: string;
46
+ filetype: string;
47
+ filename: string;
48
+ subtype: string;
49
+ profile_sha256: string;
50
+ hdf_splunk_schema: string;
51
+ is_baseline: boolean;
52
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=splunk-profile-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"splunk-profile-types.js","sourceRoot":"","sources":["../../../../src/converters-from-hdf/splunk/splunk-profile-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { ExecJSON } from 'inspecjs';
2
+ export declare type SplunkReport = {
3
+ meta: Meta;
4
+ statistics?: ExecJSON.Statistics;
5
+ platform: Platform;
6
+ version: string;
7
+ };
8
+ export declare type Meta = {
9
+ guid: string;
10
+ filename: string;
11
+ filetype: string;
12
+ subtype: string;
13
+ hdf_splunk_schema: string;
14
+ };
15
+ export declare type Platform = {
16
+ release: string;
17
+ name: string;
18
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=splunk-report-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"splunk-report-types.js","sourceRoot":"","sources":["../../../../src/converters-from-hdf/splunk/splunk-report-types.ts"],"names":[],"mappings":""}
@@ -4,13 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AwsConfigMapping = void 0;
7
- const lodash_1 = __importDefault(require("lodash"));
8
7
  const aws_config_mapping_json_1 = __importDefault(require("../../data/aws-config-mapping.json"));
9
8
  const AwsConfigMappingItem_1 = require("./AwsConfigMappingItem");
10
9
  class AwsConfigMapping {
11
10
  constructor() {
12
11
  this.data = [];
13
- Object.entries(lodash_1.default.cloneDeep(aws_config_mapping_json_1.default)).forEach((item) => {
12
+ Object.entries(aws_config_mapping_json_1.default).forEach((item) => {
14
13
  this.data.push(new AwsConfigMappingItem_1.AwsConfigMappingItem(item[1].AwsConfigRuleSourceIdentifier, item[1].AwsConfigRuleName, item[1]['NIST-ID'], item[1].Rev));
15
14
  });
16
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AwsConfigMapping.js","sourceRoot":"","sources":["../../../src/mappings/AwsConfigMapping.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,iGAAmE;AACnE,iEAA4D;AAE5D,MAAa,gBAAgB;IAG3B;QACE,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,MAAM,CAAC,OAAO,CAAC,gBAAC,CAAC,SAAS,CAAC,iCAAI,CAAU,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC1D,IAAI,CAAC,IAAI,CAAC,IAAI,CACZ,IAAI,2CAAoB,CACtB,IAAI,CAAC,CAAC,CAAC,CAAC,6BAA6B,EACrC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB,EACzB,IAAI,CAAC,CAAC,CAAC,CAAC,SA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AAC,CAAC,CAAC,CAAC,6BAA6B,EACrC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB,EACzB,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAClB,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CACZ,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,WAAqB;QAC9B,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC;SACb;aAAM;YACL,IAAI,OAAO,GAAa,EAAE,CAAC;YAC3B,WAAW,CAAC,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE;gBACvC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CACzB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,0BAA0B,KAAK,gBAAgB,CACrE,CAAC;gBACF,IACE,IAAI,KAAK,IAAI;oBACb,IAAI,KAAK,SAAS;oBAClB,IAAI,CAAC,MAAM,KAAK,EAAE;oBAClB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACnC;oBACA,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;iBAClD;YACH,CAAC,CAAC,CAAC;YACH,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;gBACxB,OAAO,IAAI,CAAC;aACb;YACD,OAAO,OAAO,CAAC;SAChB;IACH,CAAC;CACF;AAxCD,4CAwCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitre/hdf-converters",
3
- "version": "2.6.10",
3
+ "version": "2.6.13",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Converter util library used to transform various scan results into HDF format",
6
6
  "files": [