-
Notifications
You must be signed in to change notification settings - Fork 274
Expand file tree
/
Copy pathindex.js
More file actions
8307 lines (8189 loc) · 223 KB
/
index.js
File metadata and controls
8307 lines (8189 loc) · 223 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var index_exports = {};
__export(index_exports, {
controls: () => controls,
frameworks: () => frameworks,
policies: () => policies,
requirements: () => requirements,
soc2Requirements: () => soc2Requirements,
tasks: () => tasks,
trainingVideos: () => trainingVideos
});
module.exports = __toCommonJS(index_exports);
// src/static/videos/data/trainingVideos.ts
var trainingVideos = [
{
id: "sat-1",
title: "Security Awareness Training - Part 1",
description: "Security Awareness Training - Part 1",
youtubeId: "N-sBS3uCWB4",
url: "https://www.youtube.com/watch?v=N-sBS3uCWB4"
},
{
id: "sat-2",
title: "Security Awareness Training - Part 2",
description: "Security Awareness Training - Part 2",
youtubeId: "JwQNwhDyXig",
url: "https://www.youtube.com/watch?v=JwQNwhDyXig"
},
{
id: "sat-3",
title: "Security Awareness Training - Part 3",
description: "Security Awareness Training - Part 3",
youtubeId: "fzMNw_-KEGE",
url: "https://www.youtube.com/watch?v=fzMNw_-KEGE"
},
{
id: "sat-4",
title: "Security Awareness Training - Part 4",
description: "Security Awareness Training - Part 4",
youtubeId: "WbpqjH9kI2Y",
url: "https://www.youtube.com/watch?v=WbpqjH9kI2Y"
},
{
id: "sat-5",
title: "Security Awareness Training - Part 5",
description: "Security Awareness Training - Part 5",
youtubeId: "Clvfkm6azDs",
url: "https://www.youtube.com/watch?v=Clvfkm6azDs"
}
];
// src/static/frameworks/data/frameworks.ts
var frameworks = {
soc2: {
name: "SOC 2",
version: "2025",
description: "SOC 2 is a framework for assessing the security and reliability of information systems."
}
// iso27001: {
// name: "ISO 27001",
// version: "2025",
// description:
// "ISO 27001 is a framework for assessing the security and reliability of information systems.",
// },
// gdpr: {
// name: "GDPR",
// version: "2025",
// description:
// "GDPR is a framework for assessing the security and reliability of information systems.",
// },
};
// src/static/requirements/data/soc2.ts
var soc2Requirements = {
CC1: {
name: "CC1: Control Environment",
description: "This criterion ensures that the organization demonstrates commitment to integrity and ethical values, establishes board oversight, creates appropriate organizational structures, and shows commitment to competence."
},
CC2: {
name: "CC2: Communication and Information",
description: "This criterion focuses on how the organization obtains and uses relevant quality information to support the functioning of internal control, and communicates internal control information internally and externally."
},
CC3: {
name: "CC3: Risk Assessment",
description: "This criterion evaluates how the organization specifies suitable objectives, identifies and analyzes risk, and assesses fraud risk and significant change that could impact the system of internal control."
},
CC4: {
name: "CC4: Monitoring Activities",
description: "This criterion assesses how the organization selects, develops and performs ongoing evaluations to determine whether controls are present and functioning, and communicates internal control deficiencies."
},
CC5: {
name: "CC5: Control Activities",
description: "This criterion evaluates how the organization selects and develops control activities that contribute to the mitigation of risks, and deploys them through policies and procedures."
},
CC6: {
name: "CC6: Logical and Physical Access Controls",
description: "This criterion focuses on how the organization implements controls over system boundaries, user identification and authentication, data security, and physical access to facilities and assets."
},
CC7: {
name: "CC7: System Operations",
description: "This criterion assesses how the organization manages system operations, detects and mitigates processing deviations, and implements recovery plans and business continuity procedures."
},
CC8: {
name: "CC8: Change Management",
description: "This criterion evaluates how the organization manages changes to infrastructure, data, software and procedures including change authorization and documentation."
},
CC9: {
name: "CC9: Risk Mitigation",
description: "This criterion assesses how the organization identifies, selects and develops risk mitigation activities for risks arising from potential business disruptions and the use of vendors and business partners."
},
A1: {
name: "A1: Availability",
description: "This criterion ensures that systems and data are available for operation and use as committed or agreed, including availability of information processing facilities and backup capabilities."
},
C1: {
name: "C1: Confidentiality",
description: "This criterion ensures that information designated as confidential is protected according to policy and procedures as committed or agreed, including encryption, access controls and secure disposal."
},
PI1: {
name: "PI1: Processing Integrity",
description: "This criterion ensures that system processing is complete, valid, accurate, timely and authorized to meet the entity's objectives."
},
P1: {
name: "P1: Privacy",
description: "This criterion ensures that personal information is collected, used, retained, disclosed and disposed of in conformity with commitments in the entity's privacy notice and criteria set forth in Generally Accepted Privacy Principles."
}
};
// src/static/requirements/index.ts
var requirements = {
soc2: soc2Requirements
// iso27001: {},
// gdpr: {},
};
// src/templates/policies/data/access-control.policy.ts
var accessControlPolicy = {
type: "doc",
metadata: {
id: "access_control",
name: "Access Control Policy",
description: "This policy defines the requirements for controlling access to information systems and data based on the principle of least privilege.",
frequency: "yearly",
department: "it"
},
content: [
{
type: "heading",
attrs: { level: 1 },
content: [{ type: "text", text: "Access Control Policy" }]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Policy Information" }]
},
{
type: "table",
content: [
{
type: "tableRow",
content: [
{
type: "tableCell",
content: [{ type: "text", text: "Organization" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Last Review" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Review Frequency" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Approved By" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Classification" }]
}
]
},
{
type: "tableRow",
content: [
{
type: "tableCell",
content: [{ type: "text", text: "{{organization}}" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "{{date}}" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Annual" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "CISO" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Restricted" }]
}
]
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Purpose and Scope" }]
},
{
type: "paragraph",
content: [
{
type: "text",
text: "This policy governs access to all organizational systems and data. It is designed to enforce the principle of least privilege and protect sensitive information from unauthorized access."
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Policy" }]
},
{
type: "orderedList",
attrs: { tight: true },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Access rights must be granted based on business need and reviewed periodically."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "User authentication must incorporate strong passwords and multi-factor authentication."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Access privileges must be promptly revoked upon termination or role change."
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "References" }]
}
]
};
// src/templates/policies/data/application-security.policy.ts
var applicationSecurityPolicy = {
type: "doc",
metadata: {
id: "application_security",
name: "Application Security Policy",
description: "This policy outlines the security framework and requirements for applications, notably web applications, within the organization's production environment.",
frequency: "yearly",
department: "it"
},
content: [
{
type: "heading",
attrs: { level: 1 },
content: [{ type: "text", text: "Application Security Policy" }]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Policy Information" }]
},
{
type: "table",
content: [
{
type: "tableRow",
content: [
{
type: "tableCell",
content: [{ type: "text", text: "Organization" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Last Review" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Review Frequency" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Approved By" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Classification" }]
}
]
},
{
type: "tableRow",
content: [
{
type: "tableCell",
content: [{ type: "text", text: "{{organization}}" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "{{date}}" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Annual" }]
},
{
type: "tableCell",
content: [
{ type: "text", text: "Chief Information Security Officer" }
]
},
{
type: "tableCell",
content: [{ type: "text", text: "Confidential" }]
}
]
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Purpose and Scope" }]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "This application security policy defines the security framework and requirements for applications, notably web applications, within the organization's production environment."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "This document also provides implementing controls and instructions for web application security, to include periodic vulnerability scans and other types of evaluations and assessments."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "This policy applies to all applications within the organization's production environment, as well as administrators and users of these applications. This typically includes employees and contractors."
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Background" }]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Application vulnerabilities typically account for the largest number of initial attack vectors after malware infections. As a result, it is important that applications are designed with security in mind, and that they are scanned and continuously monitored for malicious activity that could indicate a system compromise. Discovery and subsequent mitigation of application vulnerabilities will limit the organization's attack surface, and ensures a baseline level of security across all systems."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "In addition to scanning guidance, this policy also defines technical requirements and procedures to ensure that applications are properly hardened in accordance with security best practices."
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "References" }]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [{ type: "text", text: "Data Classification Policy" }]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{ type: "text", text: "OWASP Risk Rating Methodology" }
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [{ type: "text", text: "OWASP Testing Guide" }]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [{ type: "text", text: "OWASP Top Ten Project" }]
}
]
}
]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Policy" }]
},
{
type: "heading",
attrs: { level: 3 },
content: [{ type: "text", text: "Security Best Practices" }]
},
{
type: "paragraph",
content: [
{
type: "text",
text: "The organization must ensure that all applications it develops and/or acquires are securely configured and managed. The following security best practices must be considered and, if feasible, applied as a matter of the application's security design:"
}
]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Data handled and managed by the application must be classified in accordance with the Data Classification Policy."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "If the application processes confidential information, a confidential record banner must be prominently displayed which highlights the type of confidential data being accessed (e.g., personally-identifiable information (PII), protected health information (PHI), etc.)"
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 3 },
content: [{ type: "text", text: "Third-Party Applications" }]
},
{
type: "paragraph",
content: [
{
type: "text",
text: "When applications are acquired from a third party, such as a vendor:"
}
]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Only applications that are supported by an approved vendor shall be procured and used."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Full support contracts must be arranged with the application vendor for full life-cycle support."
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 3 },
content: [{ type: "text", text: "Web Application Assessment" }]
},
{
type: "paragraph",
content: [
{
type: "text",
text: "Web applications must be assessed according to the following criteria:"
}
]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "New or major application releases must have a full assessment prior to approval of the change control documentation and/or release into the production environment."
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 3 },
content: [{ type: "text", text: "Vulnerability Risk Levels" }]
},
{
type: "paragraph",
content: [
{
type: "text",
text: "Vulnerabilities discovered during application assessments must be mitigated based upon the following risk levels, which are based on the Open Web Application Security Project (OWASP) Risk Rating Methodology:"
}
]
},
{
type: "heading",
attrs: { level: 4 },
content: [{ type: "text", text: "High Risk" }]
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{ type: "text", text: "Issues must be fixed immediately" }
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Alternate mitigation strategies must be implemented to limit exposure before deployment"
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 3 },
content: [{ type: "text", text: "Security Assessment Types" }]
},
{
type: "paragraph",
content: [
{
type: "text",
text: "The following security assessment types may be leveraged to perform an application security assessment:"
}
]
},
{
type: "heading",
attrs: { level: 4 },
content: [{ type: "text", text: "Full Assessment" }]
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Comprised of tests for all known web application vulnerabilities"
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Uses both automated and manual tools based on the OWASP Testing Guide"
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Must leverage manual penetration testing techniques"
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Validates discovered vulnerabilities to determine overall risk"
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 4 },
content: [{ type: "text", text: "Quick Assessment" }]
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Consists of an automated scan of an application"
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Covers, at minimum, the OWASP Top Ten web application security risks"
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 4 },
content: [{ type: "text", text: "Targeted Assessment" }]
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Verifies vulnerability remediation changes"
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Validates new application functionality"
}
]
}
]
}
]
},
{
type: "heading",
attrs: { level: 3 },
content: [{ type: "text", text: "Additional Security Controls" }]
},
{
type: "orderedList",
attrs: { tight: true, start: 1 },
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "To counter the risk of unauthorized access, the organization maintains a Data Center Security Policy."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Security requirements for the software development life cycle, including system development, acquisition and maintenance are defined in the Software Development Lifecycle Policy."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Security requirements for handling information security incidents are defined in the Security Incident Response Policy."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Disaster recovery and business continuity management policy is defined in the Disaster Recovery Policy."
}
]
}
]
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Requirements for information system availability and redundancy are defined in the System Availability Policy."
}
]
}
]
}
]
}
]
};
// src/templates/policies/data/availability.policy.ts
var availabilityPolicy = {
type: "doc",
metadata: {
id: "availability",
name: "Availability Policy",
description: "This policy defines the requirements for ensuring that information systems and data are available for use when needed.",
frequency: "yearly",
department: "it"
},
content: [
{
type: "heading",
attrs: { level: 1 },
content: [{ type: "text", text: "Availability Policy" }]
},
{
type: "heading",
attrs: { level: 2 },
content: [{ type: "text", text: "Policy Information" }]
},
{
type: "table",
content: [
{
type: "tableRow",
content: [
{
type: "tableCell",
content: [{ type: "text", text: "Organization" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Last Review" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Review Frequency" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Approved By" }]
},
{
type: "tableCell",
content: [{ type: "text", text: "Classification" }]
}
]
},
{
type: "tableRow",