-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathos.lr
More file actions
3145 lines (2902 loc) · 82.2 KB
/
os.lr
File metadata and controls
3145 lines (2902 loc) · 82.2 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
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1
import "../../core/resources/core.lr"
import "../../network/resources/network.lr"
option provider = "go.mondoo.com/cnquery/v9/providers/os"
option go_package = "go.mondoo.com/mql/v13/providers/os/resources"
alias os.base.command = command
alias os.base.user = user
alias os.base.group = group
alias os.base.file = file
alias os.base.packages = packages
alias os.base.service = service
alias os.base.services = services
alias os.unix.sshd = sshd
extend asset {
// Common Platform Enumeration (CPE) for the asset
cpes() []core.cpe
// Advisory & vulnerability report
// Deprecated; will be removed in version 13.0 (use vulnmgmt instead)
vulnerabilityReport() dict
// Platform URL in the package URL format (as opposed to the CPE format)
purl() string
}
asset.eol @defaults("date") {
// Documentation URL
docsUrl string
// Product URL
productUrl string
// End-of-Life date
date time
}
// Platform end-of-life information
private mondoo.eol {
// Product name
product string
// Product version
version string
// End-of-life date for the product
date() time
}
// Asset vulnerability information
vulnmgmt {
// List of all CVEs affecting the asset
cves() []vuln.cve
// List of all Advisories affecting the asset
advisories() []vuln.advisory
// List of all packages affected by vulnerabilities
packages() []vuln.package
// Last time the vulnerability information was updated
lastAssessment() time
// Statistics about the vulnerabilities
stats() audit.cvss
}
// CVE information
private vuln.cve @defaults("id") {
// CVE ID
id string
// CVE state
state string
// Summary description
summary string
// Whether the CVE has a CVSS score
unscored bool
// Publication date
published time
// Last modification date
modified time
// Worst CVSS score of all assigned CVEs
worstScore audit.cvss
}
// Advisory information
private vuln.advisory @defaults("id") {
// Advisory ID
id string
// Title of the advisory
title string
// Description of the advisory
description string
// Advisory publication date
published time
// Last modification date
modified time
// Worst CVSS score of all assigned CVEs
worstScore audit.cvss
}
// Package information relevant for vulnerability management
private vuln.package @defaults("name version") {
// Package name
name string
// Package version
version string
// Available package version
available string
// Architecture of this package
arch string
}
// All platform/package advisories
platform.advisories {
[]audit.advisory
// Worst CVSS score for all advisories
cvss() audit.cvss
// Statistical information: total, critical, high, medium, low, none, unknown
stats() dict
}
// All platform/package CVEs
platform.cves {
[]audit.cve
// Worst CVSS score for all CVEs
cvss() audit.cvss
// Statistical information: total, critical, high, medium, low, none, unknown
stats() dict
}
// Common Vulnerability Scoring System (CVSS) score
private audit.cvss @defaults("score") {
// CVSS score ranging from 0.0 to 10.0
score float
// CVSS score represented as a vector string
vector string
}
// Platform/package advisory
private audit.advisory {
// Advisory ID
id string
// Mondoo advisory identifier
mrn string
// Advisory title
title string
// Advisory description
description string
// Advisory publication date
published time
// Last modification date
modified time
// Worst CVSS score of all assigned CVEs
worstScore audit.cvss
}
// Common Vulnerabilities and Exposures (CVEs)
private audit.cve {
// CVE ID
id string
// Mondoo CVE identifier
mrn string
// CVE state
state string
// Summary description
summary string
// Whether the CVE has a CVSS score
unscored bool
// Publication date
published time
// Last modification date
modified time
// Worst CVSS score of all assigned CVEs
worstScore audit.cvss
}
machine {}
// SMBIOS BIOS information
machine.bios {
// BIOS vendor
vendor string
// BIOS version
version string
// BIOS release date
releaseDate string
}
// SMBIOS system information
machine.system {
// Manufacturer
manufacturer string
// Product name
product string
// Version
version string
// Serial number
serial string
// UUID
uuid string
// SKU number
sku string
// Family
family string
}
// SMBIOS baseboard (or module) information
machine.baseboard {
// Manufacturer
manufacturer string
// Product
product string
// Version
version string
// Serial number
serial string
// Asset tag
assetTag string
}
// SMBIOS system enclosure or chassis
machine.chassis {
// Manufacturer
manufacturer string
// Version
version string
// Serial number
serial string
// Asset tag number
assetTag string
}
// CPU information
machine.cpu @defaults("manufacturer model processorCount coreCount") {
// CPU manufacturer
manufacturer string
// CPU model name
model string
// Number of physical CPU packages (sockets)
processorCount int
// Total number of physical CPU cores
coreCount int
}
// Operating system information
os {
// Pretty hostname on macOS/Linux or device name on Windows
name() string
// ENV variable contents
env() map[string]string
// PATH variable contents
path(env) []string
// Current uptime
uptime() time
// List of available OS updates
updates() []os.update
// Whether a reboot is pending
rebootpending() bool
// Hostname for this OS
hostname() string
// Hypervisor for this OS
hypervisor() string
// Machine ID for this OS
machineid() string
// Current date and timezone of the system
date() os.date
}
// Operating system date and timezone information
os.date @defaults("time timezone") {
// Current system time
time() time
// System timezone (e.g., "America/New_York", "UTC")
timezone() string
}
// Operating system update information
os.update @defaults("name") {
// Name of the update
name string
// Category of the update
category string
// Severity of the update
severity string
// Whether a restart is required
restart bool
// Package format for this update
format string
}
os.base {
embed machine
// Pretty Hostname on macOS/Linux or device name on Windows
name() string
// ENV variable contents
env() map[string]string
// PATH variable contents
path(env) []string
// Current uptime
uptime() time
// List of available OS updates
updates() []os.update
// Whether a reboot is pending
rebootpending() bool
// Hostname for this OS
hostname() string
// User groups
groups() groups
// Users
users() users
}
os.unix {
embed os.base as base
}
os.linux {
embed os.unix as unix
// iptables firewall for IPv4
iptables() iptables
// iptables firewall for IPv6
ip6tables() ip6tables
// nftables firewall
nftables() nftables
// UFW (Uncomplicated Firewall)
ufw() ufw
// firewalld dynamic firewall manager (RHEL/CentOS/Fedora)
firewalld() firewalld
// /etc/fstab entries
fstab() fstab
// AppArmor mandatory access control
apparmor() apparmor
}
// Operating system root certificates
os.rootCertificates {
[]certificate(content)
// List of files that define these certificates
files []file
content(files) []string
}
// Results of running a command on the system
command {
init(command string)
// Raw contents of the command
command string
// Standard output from running the command
stdout(command) string
// Standard error output from running the command
stderr(command) string
// Exit code the command returned
exitcode(command) int
}
// Results of running a PowerShell script on the system
powershell {
init(script string)
// Raw contents of the script
script string
// Standard output from running the script
stdout() string
// Standard error output from running the script
stderr() string
// Exit code the script returned
exitcode() int
}
// File on the system
file @defaults("path size permissions.string") {
init(path string)
// Location of the file on the system
path string
// Filename without path prefix of this file
basename(path) string
// Path to the folder containing this file
dirname(path) string
// Contents of this file
content(path, exists) string
// Whether this file exists on the system
exists(path) bool
// Permissions for this file
permissions(path) file.permissions
// Size of this file on disk
size(path) int
// Ownership information about the user
user() user
// Ownership information about the group
group() group
// Whether the path is empty
empty(path) bool
}
// File context is a range of lines/columns in a file
private file.context @defaults("file.path range content") {
// File referenced by this file context
file file
// Range of content in the file
range range
// Content for this range in the file, shown as an excerpt
content(file, range) string
}
// Access permissions for a given file
private file.permissions @defaults("string") {
// Raw POSIX mode for the permissions
mode int
// Whether the file is readable by its owner
user_readable bool
// Whether the file is writeable by its owner
user_writeable bool
// Whether the file is executable by its owner
user_executable bool
// Whether the file is readable by members of the group
group_readable bool
// Whether the file is writeable by members of the group
group_writeable bool
// Whether the file is executable by members of the group
group_executable bool
// Whether the file is readable by others
other_readable bool
// Whether the file is writeable by others
other_writeable bool
// Whether the file is executable by others
other_executable bool
// SUID bit indicator
suid bool
// SGID bit indicator
sgid bool
// Sticky bit indicator
sticky bool
// Whether the file describes a directory
isDirectory bool
// Whether the file describes a regular file
isFile bool
// Whether the file is a symlink
isSymlink bool
// A simple printed string version of the permissions
string() string
}
files {}
// Find files on the system
files.find {
[]file
// Sets the starting point for the search operation
from string
// Whether to search across other devices
xdev bool
// What types of files to list (directories, files, devices, etc)
type string
// A regular expression for the file search
regex string
// What permissions the file matches
permissions int
// Search name
name string
// The depth of the file search.
depth int
}
// Parse INI files
parse.ini {
init(path string, delimiter string)
// Symbol that separates keys and values
delimiter string
// File that is parsed
file file
// Raw content of the file that is parsed
content(file) string
// Map of sections and key-value pairs
sections(content, delimiter) map[string]map[string]string
// Map of parameters that don't belong to sections
params(sections) map[string]string
}
// Parse JSON files
parse.json {
init(path string)
// File that is parsed
file file
// Raw content of the file that is parsed
content(file) string
// The parsed parameters defined in this file
params(content) dict
}
// Parse XML files
parse.xml {
init(path string)
// File that is parsed
file file
// Raw content of the file that is parsed
content(file) string
// The parsed parameters defined in this file
params(content) dict
}
// Parse plist files
parse.plist {
init(path string)
// File that is parsed
file file
// Raw content of the file that is parsed
content(file) string
// The parsed parameters that are defined in this file
params(content) dict
}
// Parse YAML files
parse.yaml {
init(path string)
// File that is parsed
file file
// Raw content of the file that is parsed
content(file) string
// The parsed parameters that are defined in this file
params(content) dict
// Parsed yaml documents
documents(content) []dict
}
// Parse certificates from files
parse.certificates {
[]network.certificate(content, path)
init(path string)
// Certificate file path
path string
// Certificate file
file() file
// Certificate file content
content(file) string
}
// Parse OpenPGP from files
parse.openpgp {
[]network.openpgp.entity(content)
init(path string)
// OpenPGP file
file file
// OpenPGP file content
content(file) string
}
// User on this system
user @defaults("name uid gid") {
// User ID
uid int
// User's group ID
gid int
// User's security identifier (Windows)
sid string
// Name of the user
name string
// Home folder
home string
// Default shell configured
shell string
// Whether the user is enabled
enabled bool
// List of authorized keys
authorizedkeys(home) authorizedkeys
// List of SSH keys
sshkeys() []privatekey
// Group of which user is a member
group(gid) group
}
// Private key resource
privatekey {
// PEM data
pem string
// Deprecated; use file instead
path string
// File on disk for this private key
file file
// Whether the file is encrypted
encrypted bool
}
// Users configured on this system
users {
[]user
}
// List of SSH authorized keys
authorizedkeys {
[]authorizedkeys.entry(file, content)
init(path string)
// Path to the key file
path string
// Key file
file file
// Key file content
content(file) string
}
// SSH authorized key
authorizedkeys.entry @defaults("key") {
// Line of the key
line int
// Type of key
type string
// Key
key string
// Key label
label string
// SSH key options (e.g., command restrictions, source IP limits)
options []string
// Key file
file file
}
// Group on this system
group @defaults("name gid") {
init(id string)
// Group ID
gid int
// Group's security identifier (Windows)
sid string
// Name of this group
name string
// Users who are members of this group
members() []user
}
// Groups configured on this system
groups {
[]group
}
// Package on the platform or OS
package @defaults("name version") {
// May be initialized with the name only, in which case it will look up
// The package with the given name on the system.
init(name string)
// Name of the package
name string
// Package description
description string
// Current version of the package
version string
// Architecture of this package
arch string
// Epoch of this package
epoch string
// Format of this package (e.g., rpm, deb)
format string
// Status of this package (e.g., if it is needed)
status() string
// Package URL
purl string
// Common Platform Enumeration (CPE) for the package
cpes []core.cpe
// Package origin, may include version if available (optional)
origin() string
// Available version
available string
// Whether the package is installed
installed bool
// Whether the package is outdated
outdated() bool
// Package files
files() []pkgFileInfo
// Package vendor
vendor string
}
private pkgFileInfo @defaults("path") {
// Path to the file
path string
}
// List of packages on this system
packages {
[]package
}
// PAM configuration (pluggable authentication module)
pam.conf {
init(path string)
// List of files that make up the PAM configuration
files() []file
// The raw PAM configuration (across all files)
content(files) string
// Deprecated; list of services that are configured via PAM
services(files) map[string][]string
// List of services with parsed entries that are configured via PAM
entries(files) map[string][]pam.conf.serviceEntry
}
private pam.conf.serviceEntry @defaults("service module") {
// Service file that the entry is from
service string
// Line number in service file (used for ID)
lineNumber int
// Type for PAM entry, (i.e., auth, password, etc)
pamType string
// Level of control, (i.e., required, requisite, sufficient)
control string
// PAM module used
module string
// Configuration options for pam service entry
options []string
}
// SSH server resource
sshd {}
// SSH server configuration
sshd.config {
init(path? string)
// File of this SSH server configuration
file() file
// A list of lexically sorted files making up the SSH server configuration
files(file) []file
// Configuration values of this SSH server
params(file) map[string]string
// Blocks with match conditions in this SSH server config
blocks(file) []sshd.config.matchBlock
// Ciphers configured for this SSH server
ciphers(params) []string
// MACs configured for this SSH server
macs(params) []string
// Key exchange algorithms configured for this SSH server
kexs(params) []string
// Host keys configured for this SSH server
hostkeys(params) []string
// PermitRootLogin setting in SSH server
permitRootLogin(params) []string
}
// A block of SSH server configuration
private sshd.config.matchBlock @defaults("criteria") @context("file.context") {
// The match criteria for this block
criteria string
// Configuration values in this block
params map[string]string
// Ciphers configured for this SSH server
ciphers(params) []string
// MACs configured for this SSH server
macs(params) []string
// Key exchange algorithms configured for this SSH server
kexs(params) []string
// Host keys configured for this SSH server
hostkeys(params) []string
// PermitRootLogin setting in SSH server
permitRootLogin(params) []string
}
// auditd (Linux Audit Daemon) configuration
auditd.config {
init(path? string)
// File of this auditd configuration
file() file
// Configuration values of this config
params(file) map[string]string
}
// auditd (Linux Audit Daemon) rules aggregated on disk
// via /etc/audit/audit.rules by default
auditd.rules {
// Path to folder to look up rules
path() string
// All controls for auditd
controls(path) []auditd.rule.control
// All file rules
files(path) []auditd.rule.file
// All syscall rules
syscalls(path) []auditd.rule.syscall
}
// auditd (Linux Audit Daemon) rule
private auditd.rule {}
// auditd (Linux Audit Daemon) rule for a control
// We translate these into simple key-value pairs consisting of a flag and a value
// eg: --backlog_wait_time 60000 => {flag: "--backlog_wait_time", value: "60000"}
// eg: -b 8192 => {flag: "-b", value: "8192"}
// eg: -D => {flag: "-D", value: nil}
private auditd.rule.control @defaults("flag value") {
// The flag used for this control, i.e. the first part of the control including any leading `-`
flag string
// The value of the control, which may be specified
value string
}
// auditd (Linux Audit Daemon) rule for a file
// eg: -w /etc/shadow -p rw -k shadow_access
// => {path: "/etc/shadow", permissions: "rw", keyname: "shadow_access"}
private auditd.rule.file @defaults("path permissions") {
// The path this rule matches as specified by -w
path string
// The permissions specified by this rule via -p
permissions string
// The key name for related rules as specified by -k
keyname string
}
// auditd (Linux Audit Daemon) rule for a syscall
// eg: -a always,exit -F arch=b32 -F auid>=1000 -F auid!=unset
// => {
// action: "always",
// list: "exit",
// syscalls: [],
// field_entries: [
// key="arch" op="=" value="b32"
// key="auid" op=">=" value="1000"
// key="auid" op="!=" value="unset"
// ],
// keyname: nil,
// }
private auditd.rule.syscall @defaults("action list") {
// The action specified by -a
action string
// The list, the second value specified by -a
list string
// The list of syscalls that this rule matches, specified by -S
syscalls []string
// All field entries as raw values, as specified by -F
fields []dict
// All inter-field comparisons as specified by -C
comparisons []dict
// The key name for related rules as specified by -k
keyname string
}
// Apache2 HTTP Server
apache2 {
// Apache2 version (e.g., "2.4.62")
version() string
}
// Apache2 HTTP Server configuration
apache2.conf {
init(path? string)
// Primary configuration file
file() file
// All configuration files (main + included fragments)
files(file) []file
// Flat key-value directives from the configuration
params(file) map[string]string
// Listen addresses/ports
listenAddresses(params) []string
// Loaded modules (LoadModule directives)
modules(file) []apache2.conf.module
// VirtualHost blocks
virtualHosts(file) []apache2.conf.virtualHost
// Directory blocks
directories(file) []apache2.conf.directory
}
// Apache2 loaded module
private apache2.conf.module @defaults("name") {
// Module name (e.g., "ssl_module")
name string
// Shared object path (e.g., "modules/mod_ssl.so")
path string
}
// Apache2 VirtualHost block
private apache2.conf.virtualHost @defaults("address") {
// VirtualHost address (e.g., "*:443")
address string
// ServerName directive
serverName string
// DocumentRoot directive
documentRoot string
// Whether SSL is enabled (SSLEngine on)
ssl bool
// All directives within this VirtualHost
params map[string]string
}
// Apache2 Directory block
private apache2.conf.directory @defaults("path") {
// Directory path
path string
// Options directive value
options string
// AllowOverride directive value
allowOverride string
// All directives within this Directory block
params map[string]string
}
// systemd journald configuration
journald.config {
init(path? string)
// File of this journald configuration
file() file
// Deprecated; use sections() instead
params(file) map[string]string
// All sections in this journald configuration
sections(file) []journald.config.section
}
// A section in journald configuration
journald.config.section @defaults("name") {
// Name of the section (e.g., "Journal", "Upload")
name string
// Key-value pairs in this section
params []journald.config.section.param
}
journald.config.section.param @defaults("name value") {
name string
value string
}
// Service on this system
service @defaults("name running enabled type") {
init(name string)
// Name of the service
name string
// Service description
description string
// Whether the service is installed
installed bool
// Whether the service is running
running bool
// Whether the service is enabled (start at boot)
enabled bool
// Service type (e.g., simple, forking, oneshot, notify)
type string
// Whether the service is masked
masked bool
// Whether the service is static (unit file has no [Install] section and cannot be enabled/disabled)
static bool
}
// Services configured on this system
services {
[]service
}
// System kernel information
kernel @defaults("info") {
// Active kernel information
info() dict
// Kernel parameters map
parameters() map[string]string
// List of kernel modules
modules() []kernel.module
// Installed versions
installed() []dict
}
// System kernel module information
kernel.module @defaults("name loaded") {
init(name string)
// Name of the kernel module
name string
// Size of the kernel module
size string
// Whether the module is loaded
loaded bool
}
// Docker host resource
docker {
// List all Docker images
images() []docker.image
// List all Docker containers
containers() []docker.container
}
// Dockerfile resource
docker.file @defaults("file.path instructions.length stages.length") {
init(path string)
// File information about this Dockerfile
embed file
// List of instructions in the order they appear
instructions(file) dict
// All stages included in this Dockerfile
stages(file) []docker.file.stage
}
// Dockerfile stages
private docker.file.stage @defaults("from.name") {
// The source of this stage, specified via `FROM` in Dockerfiles
from docker.file.from
// Contains the reference to the Dockerfile this stage belongs to
file docker.file
// ENV instructions in this Dockerfile
env []docker.file.env
// ARG instructions in the Dockerfile
arg []docker.file.arg
// LABEL instructions in the Dockerfile
labels map[string]string
// RUN instructions in this Dockerfile
run []docker.file.run
// CMD instructions in this Dockerfile