summaryrefslogtreecommitdiffstats
path: root/docs/Chapter4/Security.rst
blob: 5c4b6fe391bd9c720fa1e0cccd3c585dd7957c68 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
.. Modifications Copyright © 2017-2018 AT&T Intellectual Property.

.. Licensed under the Creative Commons License, Attribution 4.0 Intl.
   (the "License"); you may not use this documentation except in compliance
   with the License. You may obtain a copy of the License at

.. https://creativecommons.org/licenses/by/4.0/

.. Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.


VNF Security
----------------------

The objective of this section is to provide the key security
requirements that need to be met by VNFs. The security requirements are
grouped into five areas as listed below. Other security areas will be
addressed in future updates. These security requirements are applicable
to all VNFs. Additional security requirements for specific types of VNFs
will be applicable and are outside the scope of these general
requirements.

Section 4.3 Security in *VNF Guidelines* outlines
the five broad security areas for VNFs that are detailed in the
following sections:

-  **VNF General Security**: This section addresses general security
   requirements for the VNFs that the VNF provider will need to address.

-  **VNF Identity and Access Management**: This section addresses
   security requirements with respect to Identity and Access Management
   as these pertain to generic VNFs.

-  **VNF API Security**: This section addresses the generic security
   requirements associated with APIs. These requirements are applicable
   to those VNFs that use standard APIs for communication and data
   exchange.

-  **VNF Security Analytics**: This section addresses the security
   requirements associated with analytics for VNFs that deal with
   monitoring, data collection and analysis.

-  **VNF Data Protection**: This section addresses the security
   requirements associated with data protection.

VNF General Security Requirements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This section provides details on the VNF general security requirements
on various security areas such as user access control, network security,
ACLs, infrastructure security, and vulnerability management. These
requirements cover topics associated with compliance, security patching,
logging/accounting, authentication, encryption, role-based access
control, least privilege access/authorization. The following security
requirements need to be met by the solution in a virtual environment:

General Security Requirements

Integration and operation within a robust security environment is necessary
and expected. The security architecture will include one or more of the
following: IDAM (Identity and Access Management) for all system and
applications access, Code scanning, network vulnerability scans, OS,
Database and application patching, malware detection and cleaning,
DDOS prevention, network security gateways (internal and external)
operating at various layers, host and application based tools for
security compliance validation, aggressive security patch application,
tightly controlled software distribution and change control processes
and other state of the art security solutions. The VNF is expected to
function reliably within such an environment and the developer is
expected to understand and accommodate such controls and can expected
to supply responsive interoperability support and testing throughout
the product’s lifecycle.


.. req::
    :id: R-23740
    :target: VNF
    :keyword: MUST

    The VNF **MUST** accommodate the security principle of
    "least privilege" during development, implementation and operation.
    The importance of "least privilege" cannot be overstated and must be
    observed in all aspects of VNF development and not limited to security.
    This is applicable to all sections of this document.

.. req::
    :id: R-61354
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement access control list for OA&M
    services (e.g., restricting access to certain ports or applications).

.. req::
    :id: R-85633
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement Data Storage Encryption
    (database/disk encryption) for Sensitive Personal Information (SPI)
    and other subscriber identifiable data.

    Note: Subscribers SPI/data must be encrypted at rest, and other
    subscriber identifiable data should be encrypted at rest. Other
    data protection requirements exist and should be well understood
    by the developer.

.. req::
    :id: R-92207
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** implement a mechanism for automated and
    frequent "system configuration (automated provisioning / closed loop)"
    auditing.

.. req::
    :id: R-23882
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** be scanned using both network scanning
    and application scanning security tools on all code, including underlying
    OS and related configuration. Scan reports shall be provided. Remediation
    roadmaps shall be made available for any findings.

.. req::
    :id: R-46986
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** have source code scanned using scanning
    tools (e.g., Fortify) and provide reports.

.. req::
    :id: R-55830
    :target: VNF
    :keyword: MUST

    The VNF **MUST** distribute all production code from NCSP
    internal sources only. No production code, libraries, OS images, etc.
    shall be distributed from publically accessible depots.

.. req::
    :id: R-99771
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide all code/configuration files in a
    "Locked down" or hardened state or with documented recommendations for
    such hardening. All unnecessary services will be disabled. VNF provider
    default credentials, community strings and other such artifacts will be
    removed or disclosed so that they can be modified or removed during
    provisioning.

.. req::
    :id: R-19768
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** support L3 VPNs that enable segregation of
    traffic by application (dropping packets not belonging to the VPN) (i.e.,
    AVPN, IPSec VPN for Internet routes).

.. req::
    :id: R-33981
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** interoperate with various access control
    mechanisms for the Network Cloud execution environment (e.g.,
    Hypervisors, containers).

.. req::
    :id: R-40813
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** support the use of virtual trusted platform
    module, hypervisor security testing and standards scanning tools.

.. req::
    :id: R-56904
    :target: VNF
    :keyword: MUST

    The VNF **MUST** interoperate with the ONAP (SDN) Controller so that
    it can dynamically modify the firewall rules, ACL rules, QoS rules, virtual
    routing and forwarding rules.

.. req::
    :id: R-26586
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** support the ability to work with aliases
    (e.g., gateways, proxies) to protect and encapsulate resources.

.. req::
    :id: R-49956
    :target: VNF
    :keyword: MUST

    The VNF **MUST** pass all access to applications (Bearer,
    signaling and OA&M) through various security tools and platforms from
    ACLs, stateful firewalls and application layer gateways depending on
    manner of deployment. The application is expected to function (and in
    some cases, interwork) with these security tools.

.. req::
    :id: R-69649
    :target: VNF
    :keyword: MUST

    The VNF **MUST** have all vulnerabilities patched as soon
    as possible. Patching shall be controlled via change control process
    with vulnerabilities disclosed along with mitigation recommendations.

.. req::
    :id: R-78010
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use the NCSP's IDAM API for Identification,
    authentication and access control of customer or VNF application users.

.. req::
    :id: R-42681
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use the NCSP's IDAM API or comply with
    the requirements if not using the NCSP's IDAM API, for identification,
    authentication and access control of OA&M and other system level
    functions.

.. req::
    :id: R-68589
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, support
    User-IDs and passwords to uniquely identify the user/application. VNF
    needs to have appropriate connectors to the Identity, Authentication
    and Authorization systems that enables access at OS, Database and
    Application levels as appropriate.

.. req::
    :id: R-52085
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, provide
    the ability to support Multi-Factor Authentication (e.g., 1st factor =
    Software token on device (RSA SecureID); 2nd factor = User Name+Password,
    etc.) for the users.

.. req::
    :id: R-98391
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, support
    Role-Based Access Control to permit/limit the user/application to
    performing specific activities.

.. req::
    :id: R-63217
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, support
    logging via ONAP for a historical view of "who did what and when."

.. req::
    :id: R-62498
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSPs IDAM API, encrypt
    OA&M access (e.g., SSH, SFTP).

.. req::
    :id: R-79107
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, enforce
    a configurable maximum number of Login attempts policy for the users.
    VNF provider must comply with "terminate idle sessions" policy.
    Interactive sessions must be terminated, or a secure, locking screensaver
    must be activated requiring authentication, after a configurable period
    of inactivity. The system-based inactivity timeout for the enterprise
    identity and access management system must also be configurable.

.. req::
    :id: R-35144
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, comply
    with the NCSP's credential management policy.

.. req::
    :id: R-75041
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, expire
    passwords at regular configurable intervals.

.. req::
    :id: R-46908
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, comply
    with "password complexity" policy. When passwords are used, they shall
    be complex and shall at least meet the following password construction
    requirements: (1) be a minimum configurable number of characters in
    length, (2) include 3 of the 4 following types of characters:
    upper-case alphabetic, lower-case alphabetic, numeric, and special,
    (3) not be the same as the UserID with which they are associated or
    other common strings as specified by the environment, (4) not contain
    repeating or sequential characters or numbers, (5) not to use special
    characters that may have command functions, and (6) new passwords must
    not contain sequences of three or more characters from the previous
    password.

.. req::
    :id: R-39342
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, comply
    with "password changes (includes default passwords)" policy. Products
    will support password aging, syntax and other credential management
    practices on a configurable basis.

.. req::
    :id: R-40521
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, support
    use of common third party authentication and authorization tools such
    as TACACS+, RADIUS.

.. req::
    :id: R-41994
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API, comply
    with "No Self-Signed Certificates" policy. Self-signed certificates
    must be used for encryption only, using specified and approved
    encryption protocols such as TLS 1.2 or higher or equivalent security
    protocols such as IPSec, AES.

.. req::
    :id: R-23135
    :target: VNF
    :keyword: MUST

    The VNF **MUST**, if not using the NCSP's IDAM API,
    authenticate system to system communications where one system
    accesses the resources of another system, and must never conceal
    individual accountability.

VNF Identity and Access Management Requirements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The following security requirements for logging, identity, and access
management need to be met by the solution in a virtual environment:


Identity and Access Management Requirements


.. req::
    :id: R-95105
    :target: VNF
    :keyword: MUST

    The VNF **MUST** host connectors for access to the application layer.

.. req::
    :id: R-45496
    :target: VNF
    :keyword: MUST

    The VNF **MUST** host connectors for access to the OS (Operating System) layer.

.. req::
    :id: R-05470
    :target: VNF
    :keyword: MUST

    The VNF **MUST** host connectors for access to the database layer.

.. req::
    :id: R-99174
    :target: VNF
    :keyword: MUST

    The VNF **MUST** comply with Individual Accountability
    (each person must be assigned a unique ID) when persons or non-person
    entities access VNFs.

.. req::
    :id: R-42874
    :target: VNF
    :keyword: MUST

    The VNF **MUST** comply with Least Privilege (no more
    privilege than required to perform job functions) when persons
    or non-person entities access VNFs.

.. req::
    :id: R-71787
    :target: VNF
    :keyword: MUST

    The VNF **MUST** comply with Segregation of Duties (access to a
    single layer and no developer may access production without special
    oversight) when persons or non-person entities access VNFs.

.. req::
    :id: R-86261
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** allow vendor access to VNFs remotely.

.. req::
    :id: R-49945
    :target: VNF
    :keyword: MUST

    The VNF **MUST** authorize VNF provider access through a
    client application API by the client application owner and the resource
    owner of the VNF before provisioning authorization through Role Based
    Access Control (RBAC), Attribute Based Access Control (ABAC), or other
    policy based mechanism.

.. req::
    :id: R-31751
    :target: VNF
    :keyword: MUST

    The VNF **MUST** subject VNF provider access to privilege
    reconciliation tools to prevent access creep and ensure correct
    enforcement of access policies.

.. req::
    :id: R-34552
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for OWASP Top 10.

.. req::
    :id: R-29301
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Password Attacks.

.. req::
    :id: R-72243
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Phishing / SMishing.

.. req::
    :id: R-58998
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Malware (Key Logger).

.. req::
    :id: R-14025
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Session Hijacking.

.. req::
    :id: R-31412
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for XSS / CSRF.

.. req::
    :id: R-51883
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Replay.

.. req::
    :id: R-44032
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Man in the Middle (MITM).

.. req::
    :id: R-58977
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide or support the Identity and Access
    Management (IDAM) based threat detection data for Eavesdropping.

.. req::
    :id: R-24825
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide Context awareness data (device,
    location, time, etc.) and be able to integrate with threat detection system.

.. req::
    :id: R-59391
    :target: VNF
    :keyword: MUST

    The VNF provider **MUST**, where a VNF provider requires
    the assumption of permissions, such as root or administrator, first
    log in under their individual user login ID then switch to the other
    higher level account; or where the individual user login is infeasible,
    must login with an account with admin privileges in a way that
    uniquely identifies the individual performing the function.

.. req::
    :id: R-85028
    :target: VNF
    :keyword: MUST

    The VNF **MUST** authenticate system to system access and
    do not conceal a VNF provider user's individual accountability for
    transactions.

.. req::
    :id: R-80335
    :target: VNF
    :keyword: MUST

    The VNF **MUST** make visible a Warning Notice: A formal
    statement of resource intent, i.e., a warning notice, upon initial
    access to a VNF provider user who accesses private internal networks
    or Company computer resources, e.g., upon initial logon to an internal
    web site, system or application which requires authentication.

.. req::
    :id: R-73541
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use access controls for VNFs and their
    supporting computing systems at all times to restrict access to
    authorized personnel only, e.g., least privilege. These controls
    could include the use of system configuration or access control
    software.

.. req::
    :id: R-64503
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide minimum privileges for initial
    and default settings for new user accounts.

.. req::
    :id: R-86835
    :target: VNF
    :keyword: MUST

    The VNF **MUST** set the default settings for user access
    to sensitive commands and data to deny authorization.

.. req::
    :id: R-77157
    :target: VNF
    :keyword: MUST

    The VNF **MUST** conform to approved request, workflow
    authorization, and authorization provisioning requirements when
    creating privileged users.

.. req::
    :id: R-81147
    :target: VNF
    :keyword: MUST

    The VNF **MUST** have greater restrictions for access and
    execution, such as up to 3 factors of authentication and restricted
    authorization, for commands affecting network services, such as
    commands relating to VNFs.

.. req::
    :id: R-49109
    :target: VNF
    :keyword: MUST

    The VNF **MUST** encrypt TCP/IP--HTTPS (e.g., TLS v1.2)
    transmission of data on internal and external networks.

.. req::
    :id: R-39562
    :target: VNF
    :keyword: MUST

    The VNF **MUST** disable unnecessary or vulnerable cgi-bin programs.

.. req::
    :id: R-15671
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** provide public or unrestricted access
    to any data without the permission of the data owner. All data
    classification and access controls must be followed.

.. req::
    :id: R-89753
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** install or use systems, tools or
    utilities capable of capturing or logging data that was not created
    by them or sent specifically to them in production, without
    authorization of the VNF system owner.

.. req::
    :id: R-19082
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** run security testing tools and
    programs, e.g., password cracker, port scanners, hacking tools
    in production, without authorization of the VNF system owner.

.. req::
    :id: R-19790
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** include authentication credentials
    in security audit logs, even if encrypted.

.. req::
    :id: R-85419
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** use REST APIs exposed to Client
    Applications for the implementation of OAuth 2.0 Authorization
    Code Grant and Client Credentials Grant, as the standard interface
    for a VNF.

.. req::
    :id: R-48080
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** support SCEP (Simple Certificate Enrollment Protocol).

VNF API Security Requirements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This section covers API security requirements when these are used by the
VNFs. Key security areas covered in API security are Access Control,
Authentication, Passwords, PKI Authentication Alarming, Anomaly
Detection, Lawful Intercept, Monitoring and Logging, Input Validation,
Cryptography, Business continuity, Biometric Authentication,
Identification, Confidentiality and Integrity, and Denial of Service.

The solution in a virtual environment needs to meet the following API
security requirements:


API Requirements


.. req::
    :id: R-37608
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide a mechanism to restrict access based
    on the attributes of the VNF and the attributes of the subject.

.. req::
    :id: R-43884
    :target: VNF
    :keyword: MUST

    The VNF **MUST** integrate with external authentication
    and authorization services (e.g., IDAM).

.. req::
    :id: R-25878
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use certificates issued from publicly
    recognized Certificate Authorities (CA) for the authentication process
    where PKI-based authentication is used.

.. req::
    :id: R-19804
    :target: VNF
    :keyword: MUST

    The VNF **MUST** validate the CA signature on the certificate,
    ensure that the date is within the validity period of the certificate,
    check the Certificate Revocation List (CRL), and recognize the identity
    represented by the certificate where PKI-based authentication is used.

.. req::
    :id: R-47204
    :target: VNF
    :keyword: MUST

    The VNF **MUST** protect the confidentiality and integrity of
    data at rest and in transit from unauthorized access and modification.

.. req::
    :id: R-33488
    :target: VNF
    :keyword: MUST

    The VNF **MUST** protect against all denial of service
    attacks, both volumetric and non-volumetric, or integrate with external
    denial of service protection tools.

.. req::
    :id: R-21652
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement the following input validation
    control: Check the size (length) of all input. Do not permit an amount
    of input so great that it would cause the VNF to fail. Where the input
    may be a file, the VNF API must enforce a size limit.

.. req::
    :id: R-54930
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement the following input validation
    control: Do not permit input that contains content or characters
    inappropriate to the input expected by the design. Inappropriate input,
    such as SQL insertions, may cause the system to execute undesirable
    and unauthorized transactions against the database or allow other
    inappropriate access to the internal network.

.. req::
    :id: R-21210
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement the following input validation
    control: Validate that any input file has a correct and valid
    Multipurpose Internet Mail Extensions (MIME) type. Input files
    should be tested for spoofed MIME types.

.. req::
    :id: R-23772
    :target: VNF
    :keyword: MUST

    The VNF **MUST** validate input at all layers implementing VNF APIs.

.. req::
    :id: R-87135
    :target: VNF
    :keyword: MUST

    The VNF **MUST** comply with NIST standards and industry
    best practices for all implementations of cryptography.

.. req::
    :id: R-02137
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement all monitoring and logging as
    described in the Security Analytics section.

.. req::
    :id: R-15659
    :target: VNF
    :keyword: MUST

    The VNF **MUST** restrict changing the criticality level of
    a system security alarm to administrator(s).

.. req::
    :id: R-19367
    :target: VNF
    :keyword: MUST

    The VNF **MUST** monitor API invocation patterns to detect
    anomalous access patterns that may represent fraudulent access or
    other types of attacks, or integrate with tools that implement anomaly
    and abuse detection.

.. req::
    :id: R-78066
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support requests for information from law
    enforcement and government agencies.


VNF Security Analytics Requirements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This section covers VNF security analytics requirements that are mostly
applicable to security monitoring. The VNF Security Analytics cover the
collection and analysis of data following key areas of security
monitoring:

-  Anti-virus software

-  Logging

-  Data capture

-  Tasking

-  DPI

-  API based monitoring

-  Detection and notification

-  Resource exhaustion detection

-  Proactive and scalable monitoring

-  Mobility and guest VNF monitoring

-  Closed loop monitoring

-  Interfaces to management and orchestration

-  Malformed packet detections

-  Service chaining

-  Dynamic security control

-  Dynamic load balancing

-  Connection attempts to inactive ports (malicious port scanning)

The following requirements of security monitoring need to be met by the
solution in a virtual environment.

Security Analytics Requirements


.. req::
    :id: R-48470
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support Real-time detection and
    notification of security events.

.. req::
    :id: R-22286
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support Integration functionality via
    API/Syslog/SNMP to other functional modules in the network (e.g.,
    PCRF, PCEF) that enable dynamic security control by blocking the
    malicious traffic or malicious end users.

.. req::
    :id: R-32636
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support API-based monitoring to take care of
    the scenarios where the control interfaces are not exposed, or are
    optimized and proprietary in nature.

.. req::
    :id: R-61648
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support event logging, formats, and delivery
    tools to provide the required degree of event data to ONAP.

.. req::
    :id: R-22367
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support detection of malformed packets due to
    software misconfiguration or software vulnerability.

.. req::
    :id: R-31961
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support integrated DPI/monitoring functionality
    as part of VNFs (e.g., PGW, MME).

.. req::
    :id: R-20912
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support alternative monitoring capabilities
    when VNFs do not expose data or control traffic or use proprietary and
    optimized protocols for inter VNF communication.

.. req::
    :id: R-73223
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support proactive monitoring to detect and
    report the attacks on resources so that the VNFs and associated VMs can
    be isolated, such as detection techniques for resource exhaustion, namely
    OS resource attacks, CPU attacks, consumption of kernel memory, local
    storage attacks.

.. req::
    :id: R-58370
    :target: VNF
    :keyword: MUST

    The VNF **MUST** coexist and operate normally with commercial
    anti-virus software which shall produce alarms every time when there is a
    security incident.

.. req::
    :id: R-56920
    :target: VNF
    :keyword: MUST

    The VNF **MUST** protect all security audit logs (including
    API, OS and application-generated logs), security audit software, data,
    and associated documentation from modification, or unauthorized viewing,
    by standard OS access control mechanisms, by sending to a remote system,
    or by encryption.

.. req::
    :id: R-54520
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log successful and unsuccessful login attempts.

.. req::
    :id: R-55478
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log logoffs.

.. req::
    :id: R-08598
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log successful and unsuccessful changes to a privilege level.

.. req::
    :id: R-13344
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log starting and stopping of security
    logging.

.. req::
    :id: R-07617
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log creating, removing, or changing the
    inherent privilege level of users.

.. req::
    :id: R-94525
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log connections to a network listener of the
    resource.

.. req::
    :id: R-31614
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log the field "event type" in the security audit
    logs.

.. req::
    :id: R-97445
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log the field "date/time" in the security audit
    logs.

.. req::
    :id: R-25547
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log the field "protocol" in the security audit logs.

.. req::
    :id: R-06413
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log the field "service or program used for access"
    in the security audit logs.

.. req::
    :id: R-15325
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log the field "success/failure" in the
    security audit logs.

.. req::
    :id: R-89474
    :target: VNF
    :keyword: MUST

    The VNF **MUST** log the field "Login ID" in the security audit logs.

.. req::
    :id: R-04982
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** include an authentication credential,
    e.g., password, in the security audit logs, even if encrypted.

.. req::
    :id: R-63330
    :target: VNF
    :keyword: MUST

    The VNF **MUST** detect when the security audit log storage
    medium is approaching capacity (configurable) and issue an alarm via
    SMS or equivalent as to allow time for proper actions to be taken to
    pre-empt loss of audit data.

.. req::
    :id: R-41252
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support the capability of online storage of
    security audit logs.

.. req::
    :id: R-41825
    :target: VNF
    :keyword: MUST

    The VNF **MUST** activate security alarms automatically when
    the following event is detected: configurable number of consecutive
    unsuccessful login attempts.

.. req::
    :id: R-43332
    :target: VNF
    :keyword: MUST

    The VNF **MUST** activate security alarms automatically when
    the following event is detected: successful modification of critical
    system or application files.

.. req::
    :id: R-74958
    :target: VNF
    :keyword: MUST

    The VNF **MUST** activate security alarms automatically when
    the following event is detected: unsuccessful attempts to gain permissions
    or assume the identity of another user.

.. req::
    :id: R-15884
    :target: VNF
    :keyword: MUST

    The VNF **MUST** include the field "date" in the Security alarms
    (where applicable and technically feasible).

.. req::
    :id: R-23957
    :target: VNF
    :keyword: MUST

    The VNF **MUST** include the field "time" in the Security alarms
    (where applicable and technically feasible).

.. req::
    :id: R-71842
    :target: VNF
    :keyword: MUST

    The VNF **MUST** include the field "service or program used for
    access" in the Security alarms (where applicable and technically feasible).

.. req::
    :id: R-57617
    :target: VNF
    :keyword: MUST

    The VNF **MUST** include the field "success/failure" in the
    Security alarms (where applicable and technically feasible).

.. req::
    :id: R-99730
    :target: VNF
    :keyword: MUST

    The VNF **MUST** include the field "Login ID" in the Security
    alarms (where applicable and technically feasible).

.. req::
    :id: R-29705
    :target: VNF
    :keyword: MUST

    The VNF **MUST** restrict changing the criticality level of a
    system security alarm to administrator(s).

.. req::
    :id: R-13627
    :target: VNF
    :keyword: MUST

    The VNF **MUST** monitor API invocation patterns to detect
    anomalous access patterns that may represent fraudulent access or other
    types of attacks, or integrate with tools that implement anomaly and
    abuse detection.

.. req::
    :id: R-21819
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support requests for information from law
    enforcement and government agencies.

.. req::
    :id: R-56786
    :target: VNF
    :keyword: MUST

    The VNF **MUST** implement "Closed Loop" automatic implementation
    (without human intervention) for Known Threats with detection rate in low
    false positives.

.. req::
    :id: R-25094
    :target: VNF
    :keyword: MUST

    The VNF **MUST** perform data capture for security functions.

.. req::
    :id: R-04492
    :target: VNF
    :keyword: MUST

    The VNF **MUST** generate security audit logs that must be sent
    to Security Analytics Tools for analysis.

.. req::
    :id: R-19219
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide audit logs that include user ID, dates,
    times for log-on and log-off, and terminal location at minimum.

.. req::
    :id: R-30932
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide security audit logs including records
    of successful and rejected system access data and other resource access
    attempts.

.. req::
    :id: R-54816
    :target: VNF
    :keyword: MUST

    The VNF **MUST** support the storage of security audit logs
    for agreed period of time for forensic analysis.

.. req::
    :id: R-57271
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability of generating security
    audit logs by interacting with the operating system (OS) as appropriate.

.. req::
    :id: R-84160
    :target: VNF
    :keyword: MUST

    The VNF **MUST** have security logging for VNFs and their
    OSs be active from initialization. Audit logging includes automatic
    routines to maintain activity records and cleanup programs to ensure
    the integrity of the audit/logging systems.

VNF Data Protection Requirements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This section covers VNF data protection requirements that are mostly
applicable to security monitoring.


Data Protection Requirements

.. req::
    :id: R-58964
    :target: VNF
    :keyword: MUST
    :updated: casablanca

    The VNF **MUST** provide the capability to restrict read
    and write access to data handled by the VNF.

.. req::
    :id: R-99112
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability to restrict access
    to data to specific users.

.. req::
    :id: R-83227
    :target: VNF
    :keyword: MUST

    The VNF **MUST** Provide the capability to encrypt data in
    transit on a physical or virtual network.

.. req::
    :id: R-32641
    :target: VNF
    :keyword: MUST
    :updated: casablanca

    The VNF **MUST** provide the capability to encrypt data on
    non-volatile memory.Non-volative memory is storage that is
    capable of retaining data without electrical power, e.g.
    Complementary metal–oxide–semiconductor (CMOS) or hard drives.

.. req::
    :id: R-13151
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** disable the paging of the data requiring
    encryption, if possible, where the encryption of non-transient data is
    required on a device for which the operating system performs paging to
    virtual memory. If not possible to disable the paging of the data
    requiring encryption, the virtual memory should be encrypted.

.. req::
    :id: R-93860
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability to integrate with an
    external encryption service.

.. req::
    :id: R-73067
    :target: VNF
    :keyword: MUST
    :updated: casablanca

    The VNF **MUST** use NIST and industry standard cryptographic
    algorithms and standard modes of operations when implementing
    cryptography.

.. req::
    :id: R-22645
    :target: VNF
    :keyword: SHOULD

    The VNF **SHOULD** use commercial algorithms only when there
    are no applicable governmental standards for specific cryptographic
    functions, e.g., public key cryptography, message digests.

.. req::
    :id: R-12467
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** use the SHA, DSS, MD5, SHA-1 and
    Skipjack algorithms or other compromised encryption.

.. req::
    :id: R-02170
    :target: VNF
    :keyword: MUST
    :updated: casablanca

    The VNF **MUST** use, whenever possible, standard implementations
    of security applications, protocols, and formats, e.g., S/MIME, TLS, SSH,
    IPSec, X.509 digital certificates for cryptographic implementations.
    These implementations must be purchased from reputable vendors or obtained
    from reputable open source communities and must not be developed in-house.

.. req::
    :id: R-70933
    :target: VNF
    :keyword: MUST
    :updated: casablanca

    The VNF **MUST** provide the ability to migrate to newer
    versions of cryptographic algorithms and protocols with minimal impact.

.. req::
    :id: R-44723
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use symmetric keys of at least 112 bits in length.

.. req::
    :id: R-25401
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use asymmetric keys of at least 2048 bits in length.

.. req::
    :id: R-95864
    :target: VNF
    :keyword: MUST

    The VNF **MUST** use commercial tools that comply with X.509
    standards and produce x.509 compliant keys for public/private key generation.

.. req::
    :id: R-12110
    :target: VNF
    :keyword: MUST NOT

    The VNF **MUST NOT** use keys generated or derived from
    predictable functions or values, e.g., values considered predictable
    include user identity information, time of day, stored/transmitted data.

.. req::
    :id: R-52060
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability to configure encryption
    algorithms or devices so that they comply with the laws of the jurisdiction
    in which there are plans to use data encryption.

.. req::
    :id: R-69610
    :target: VNF
    :keyword: MUST
    :updated: casablanca

    The VNF **MUST** provide the capability of using X.509 certificates
    issued by an external Certificate Authority.

.. req::
    :id: R-83500
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability of allowing certificate
    renewal and revocation.

.. req::
    :id: R-29977
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability of testing the validity
    of a digital certificate by validating the CA signature on the certificate.

.. req::
    :id: R-24359
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability of testing the validity
    of a digital certificate by validating the date the certificate is being
    used is within the validity period for the certificate.

.. req::
    :id: R-39604
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability of testing the
    validity of a digital certificate by checking the Certificate Revocation
    List (CRL) for the certificates of that type to ensure that the
    certificate has not been revoked.

.. req::
    :id: R-75343
    :target: VNF
    :keyword: MUST

    The VNF **MUST** provide the capability of testing the
    validity of a digital certificate by recognizing the identity represented
    by the certificate - the "distinguished name".