Merge pull request #358 from chisholm/software_cpe_swid
Add swid property to the software SCOmaster
commit
87c5ef30ad
|
@ -1300,6 +1300,7 @@ def test_software_example():
|
||||||
s = stix2.v21.Software(
|
s = stix2.v21.Software(
|
||||||
name="Word",
|
name="Word",
|
||||||
cpe="cpe:2.3:a:microsoft:word:2000:*:*:*:*:*:*:*",
|
cpe="cpe:2.3:a:microsoft:word:2000:*:*:*:*:*:*:*",
|
||||||
|
swid="com.acme.rms-ce-v4-1-5-0",
|
||||||
version="2002",
|
version="2002",
|
||||||
vendor="Microsoft",
|
vendor="Microsoft",
|
||||||
)
|
)
|
||||||
|
|
|
@ -760,6 +760,7 @@ class Software(_Observable):
|
||||||
('id', IDProperty(_type, spec_version='2.1')),
|
('id', IDProperty(_type, spec_version='2.1')),
|
||||||
('name', StringProperty(required=True)),
|
('name', StringProperty(required=True)),
|
||||||
('cpe', StringProperty()),
|
('cpe', StringProperty()),
|
||||||
|
('swid', StringProperty()),
|
||||||
('languages', ListProperty(StringProperty)),
|
('languages', ListProperty(StringProperty)),
|
||||||
('vendor', StringProperty()),
|
('vendor', StringProperty()),
|
||||||
('version', StringProperty()),
|
('version', StringProperty()),
|
||||||
|
|
Loading…
Reference in New Issue