Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 26c259b

Browse files
toolswatchnabil.ouchn@gmail.com
authored andcommitted
Support to new Microsoft security update, support to CAPEC 2.10, and CWE 2.11
1 parent d3abfee commit 26c259b

5 files changed

Lines changed: 28 additions & 64 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
0.7.2
5+
-----
6+
* Added support to CAPEC v2.10. Check [the full changelog](http://capec.mitre.org/data/reports/diff_reports/v2.9_v2.10.html).
7+
* Added support to CWE v2.11. Check [the full changelog](http://cwe.mitre.org/data/reports/diff_reports/v2.10_v2.11.html).
8+
* Added support to the new [Microsoft security update](https://portal.msrc.microsoft.com/en-us/security-guidance)
9+
* [Improve] Improved the `get_ms` method to returns both all and new Microsoft bulletins and KBs.
10+
* [Improve] Fixed issue #65. Cleaned the database from **Reject** entries.
11+
* [Doc] [Documentation](https://vfeed.io/docs) updated to reflect the new changes.
12+
_All changes are immediate for consultancy / integrator license customers. The CE database will be available by the end of the month_
13+
414
0.7.1
515
-----
616
* [New] Reactivated the ability to automate the download process for Consultancy / Integrator plans using private Dropbox repository.

README.md

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ vFeed The Correlated Vulnerability and Threat Intelligence Database Wrapper
22
=======================================================================
33
![vFeed](https://vfeed.io/wp-content/uploads/2016/07/vfeed.png)
44

5-
[![Build Status](https://travis-ci.org/toolswatch/vFeed.svg?branch=v0.6.5)](https://travis-ci.org/toolswatch/vFeed)
5+
[![Build Status](https://travis-ci.org/toolswatch/vFeed.svg?branch=master)](https://travis-ci.org/toolswatch/vFeed)
66
[![Code Health](https://landscape.io/github/toolswatch/vFeed/master/landscape.svg?style=flat)](https://landscape.io/github/toolswatch/vFeed/master)
77
[![Compatibility](https://img.shields.io/badge/CWE-Compatible-yellow.svg)](http://cwe.mitre.org/compatible/organizations.html#ToolsWatch)
88
[![Compatibility](https://img.shields.io/badge/CVE-Compatible-yellow.svg)](https://cve.mitre.org/compatible/compatible.html#ToolsWatch)
@@ -68,45 +68,19 @@ Refer to the [Documentation](https://vfeed.io/docs) official documentation page.
6868
Latest release
6969
==============
7070

71+
0.7.2
72+
-----
73+
* Added support to CAPEC v2.10. Check [the full changelog](http://capec.mitre.org/data/reports/diff_reports/v2.9_v2.10.html).
74+
* Added support to CWE v2.11. Check [the full changelog](http://cwe.mitre.org/data/reports/diff_reports/v2.10_v2.11.html).
75+
* Added support to the new [Microsoft security update](https://portal.msrc.microsoft.com/en-us/security-guidance)
76+
* [Improve] Improved the `get_ms` method to returns both all and new Microsoft bulletins and KBs.
77+
* [Improve] Fixed issue #65. Cleaned the database from **Reject** entries.
78+
* [Doc] [Documentation](https://vfeed.io/docs) updated to reflect the new changes.
79+
_All changes are immediate for consultancy / integrator license customers. The CE database will be available by the end of the month_
80+
7181
0.7.1
7282
-----
7383
* [New] Reactivated the ability to automate the download process for Consultancy / Integrator plans using private Dropbox repository.
7484
* [Improve] Improved the `mongo.py` to check whether SQLite exists. Thanks to Alex Faraino (https://github.com/AlexFaraino/vFeed)
7585
* [Fix] Modified vfeedcli from API to wrapper.
7686
* [Doc] [Documentation](https://vfeed.io/docs) updated to reflect the new changes.
77-
78-
0.7.0.1
79-
-----
80-
* [Fix] Fixed issue #72. Migration was not working for ubuntu and debian.
81-
* [Improve] Improved the check_mongo() to support tp linux and OSX.
82-
83-
0.7.0
84-
-----
85-
* [New] Updated and optimized `search` function with new keys (cve, cpe, cwe, oval and text). Please refer to [documentation](https://github.com/toolswatch/vFeed/wiki/2--Usage-(API-and-Command-Line))
86-
* [New] The `search` result is returned as JSON content. It may contain references to exploits whenever they are available
87-
* [New] Added support to Python3. Thanks to Elnappo (https://github.com/elnappo)
88-
* [Fix] Fixed issue #64. The CLI is separated from the library.
89-
* [Fix] Fixed issue #67. Modified the `config.py` to reflect The OVAL repository new URL hosted by CIS.
90-
91-
0.6.9
92-
-----
93-
* The vFeed DB is no more available through `update` command. The command is deprecated.
94-
* The delivery of the vFeed DB was handed over to a new established entity [vFeed IO](https://vfeed.io). This entity sets the goal to become the Leading Provider of Vulnerability and Threat Intelligence Database.
95-
* The API has been modified to reflect the new changes.
96-
97-
0.6.8
98-
-----
99-
* Added support to CAPEC version 2.8. Check [about CAPEC v2.8](http://capec.mitre.org/news/index.html#december72015_CAPEC_List_Version_2.8_Now_Available).
100-
* Added support to CWE v2.9. Check [the full changelog](http://cwe.mitre.org/data/reports/diff_reports/v2.8_v2.9.html).
101-
* Added mapping to [WASC v2.0 Threat Classification](http://projects.webappsec.org/w/page/13246978/Threat%20Classification).
102-
* Added CVSS v2.0 vectors to `risk.py` class. Now, the methods `get_cvss` and `get_severity` display the vector when available.
103-
* Added new method `get_wasc` to reflect the new mapping with WASC v2.0. The method returns ID, Title and URL when available.
104-
* Modified the method `get_capec` to return the following:
105-
* The title
106-
* [Method of Attacks](http://capec.mitre.org/documents/schema/schema_v2.7.1.html#Method_of_Attack%20%28Methods_of_Attack%29)
107-
* [Mitigations](http://capec.mitre.org/documents/schema/schema_v2.7.1.html#Solution_or_Mitigation)
108-
* Reflected the changes in `cvsexports.sql` MongoDB script to generate the new added tables.
109-
* vFeed.db the correlated vulnerability & threat database fully regenerated to support the new changes.
110-
* Documentation updated accordingly.
111-
112-
**NOTE**: Some code was cleaned. Nevertheless, the issues reported [here](https://github.com/toolswatch/vFeed/issues) will be fixed in next minor version.

config/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
capec_url = "https://capec.mitre.org/data/definitions/"
3030
osvdb_url = "http://www.osvdb.org/"
3131
bid_url = "http://www.securityfocus.com/bid/"
32-
ms_bulletin_url = "http://technet.microsoft.com/en-us/security/bulletin/"
33-
kb_bulletin_url = "https://support.microsoft.com/en-us/kb/"
3432
ibm_url = "http://www-01.ibm.com/support/docview.wss?uid=swg1"
3533
redhat_url = "https://rhn.redhat.com/errata/"
3634
redhat_oval_url = "https://www.redhat.com/security/data/oval/com.redhat.rhsa-"

lib/core/methods/json_dump.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def json_dump(self):
2727
"""
2828
# CVE basic information
2929
self.data = CveInfo(self.cve)
30-
info = json.loads(self.data.get_cve())
30+
cve_info = json.loads(self.data.get_cve())
3131

32-
if info is None:
32+
if cve_info is None:
3333
return False
3434

3535
cpe = json.loads(self.data.get_cpe())
@@ -54,7 +54,6 @@ def json_dump(self):
5454
# Patch Information
5555
self.data = CvePatches(self.cve)
5656
ms = json.loads(self.data.get_ms())
57-
kb = json.loads(self.data.get_kb())
5857
aixapar = json.loads(self.data.get_aixapar())
5958
redhat = json.loads(self.data.get_redhat())
6059
debian = json.loads(self.data.get_debian())
@@ -89,11 +88,10 @@ def json_dump(self):
8988
json_export = {
9089
"vFeed": {"id": self.vfeed_id, "author": author, "product": title, "wrapper": build, "url": repository,
9190
'Contact': twitter},
92-
"information": {"cve": info, "cpe": cpe, "cwe": cwe, "capec": capec, "category": category, "wasc": wasc},
91+
"information": {"cve": cve_info, "cpe": cpe, "cwe": cwe, "capec": capec, "category": category, "wasc": wasc},
9392
"references": {"scip": scip, "osvdb": osvdb, "certvn": certvn, "bid": bid, "iavm": iavm,
9493
'other': {"links": refs}}, "risk": severity,
95-
"patches": {"microsoft bulletins": ms, "microsoft kb": kb,
96-
"ibm": aixapar, "redhat": redhat, "debian": debian,
94+
"patches": {"microsoft": ms, "ibm": aixapar, "redhat": redhat, "debian": debian,
9795
"ubuntu": ubuntu, "gentoo": gentoo, "suse": suse, "fedora": fedora,
9896
"mandriva": mandriva, "vmware": vmware, "cisco": cisco, "hp": hp},
9997
"scanners": {"nessus": nessus, "openvas": openvas, "oval": oval, "nmap": nmap},

lib/core/methods/patches.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import json
88

99
from config.constants import *
10-
from lib.common.database import Database
1110
from lib.common.utils import check_env
11+
from lib.common.database import Database
1212

1313

1414
class CvePatches(object):
@@ -27,31 +27,15 @@ def get_ms(self):
2727
self.cur.execute('SELECT * FROM map_cve_ms WHERE cveid=?', self.query)
2828

2929
for self.data in self.cur.fetchall():
30-
item = {"id": str(self.data[0]), "title": str(self.data[1]), "url": ms_bulletin_url + str(self.data[0])}
30+
item = {"id": str(self.data[0]), "kb": str(self.data[1]), "title": str(self.data[2]),
31+
"url": str(self.data[3])}
3132
self.ms.append(item)
3233

3334
if len(self.ms) != 0:
3435
return json.dumps(self.ms, indent=2, sort_keys=True)
3536
else:
3637
return json.dumps(None)
3738

38-
def get_kb(self):
39-
""" Microsoft method
40-
:return: JSON response with Microsoft KB ID and link
41-
"""
42-
self.kb = []
43-
self.cur.execute(
44-
'SELECT * FROM map_cve_mskb WHERE cveid=?', self.query)
45-
46-
for self.data in self.cur.fetchall():
47-
item = {"id": str(self.data[0]), "title": str(self.data[1]), "url": kb_bulletin_url + str(self.data[0])}
48-
self.kb.append(item)
49-
50-
if len(self.kb) != 0:
51-
return json.dumps(self.kb, indent=2, sort_keys=True)
52-
else:
53-
return json.dumps(None)
54-
5539
def get_aixapar(self):
5640
""" AIX APAR method
5741
:return: JSON response with IBM AIXapar KB ID and link

0 commit comments

Comments
 (0)