NAME

NIST::NVD::Update - Query and Update the NVD database

VERSION

Version 1.02.01

SYNOPSIS

use NIST::NVD::Update;

# use convert_nvdcve to generate these files from the XML dumps:
# http://nvd.nist.gov/download.cfm

my $u = NIST::NVD::Update->new(
    store => $some_store,
    %args
);

SUBROUTINES/METHODS

new

# See NIST::NVD::Storage::DB_File or NIST::NVD::Storage::SQLite3 for
# an example store implementation

my $NVD_Updater =
  NIST::NVD::Update->new( store => $store_type, %args );

put_cve_idx_cpe

my $result = put_cve_idx_cpe ( $cpe_urn, $cve_list )

update_websec_idx_cpe

my $result = update_websec_idx_cpe ();

put_cwe_idx_cpe

my $result = put_cwe_idx_cpe ( $cpe_urn, $cwe_id )

put_cwe_idx_cve

 my $result = put_cwe_idx_cve ( { NVD_ID0 => $data_about_NVD_ID[0],
																	NVD_ID1 => $data_about_NVD_ID[1],
#																	...
																	"NVD_ID$N" => $data_about_NVD_ID[$N],
 } )

put_cpe

my $result = put_cpe ( $cpe_urn )

put_nvd_entries

 my $N = lots();

 my $result = put_nvd_entries ( { NVD_ID0 => $data_about_NVD_ID[0],
																	NVD_ID1 => $data_about_NVD_ID[1],
#																	...
																	"NVD_ID$N" => $data_about_NVD_ID[$N],
 } )

put_cwe

$result = $self->put_cwe( cwe_id   => 'CWE-42',
                          cwe_dump => $cwe_dump );

commit

$result = $self->commit($commit_buffer_name);

put_cwe_data

my $N = lots();

my $result = put_cwe_data ( { CWE_ID0 => $data_about_CWE_ID[0],
                              CWE_ID1 => $data_about_CWE_ID[1],
#                              ...
                              "CWE_ID$N" => $data_about_CWE_ID[$N],
} )

AUTHOR

C.J. Collier, <cjac at google.com>

LICENSE AND COPYRIGHT

Copyright (C) 2012 C.J. Adams-Collier Copyright (C) 2011,2012 F5 Networks, Inc Copyright (C) 2013 Washington State Guard Association Copyright (C) 2022 Google, LLC

CVE(r) and CWE(tm) are marks of The MITRE Corporation and used here with permission. The information in CVE and CWE are copyright of The MITRE Corporation and also used here with permission.

Please include links for CVE(r) <http://cve.mitre.org/> and CWE(tm) <http://cwe.mitre.org/> in all reproductions of these materials.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.