diff options
author | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 21:02:15 +0000 |
---|---|---|
committer | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 21:02:15 +0000 |
commit | e1d6a597b92bb42fa6414bb90613433c38694682 (patch) | |
tree | fae6fed0a095e7c648738572c91db6a81264d2bb /chrome/chrome_renderer.gypi | |
parent | ff8a4e38b04046fad0accb3044a7087db42732ed (diff) | |
download | chromium_src-e1d6a597b92bb42fa6414bb90613433c38694682.zip chromium_src-e1d6a597b92bb42fa6414bb90613433c38694682.tar.gz chromium_src-e1d6a597b92bb42fa6414bb90613433c38694682.tar.bz2 |
Add a term feature extractor for client-side phishing detection.
This class creates features for n-grams in the page text that appear in the
phishing classification model. It will eventually operate on the plain text
that is extracted by RenderView::CaptureText().
To make it harder for phishers to enumerate the terms in the classification
model, they will be supplied as SHA-256 hashes rather than plain text. The
term feature extractor hashes the words in the document in order to check
whether they match the model. Since this is potentially expensive, the term
feature extractor limits how long it will run on each iteration, similar to
the PhishingDOMFeatureExtractor.
TEST=PhishingTermFeatureExtractorTest
BUG=none
Review URL: http://codereview.chromium.org/3214002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_renderer.gypi')
-rw-r--r-- | chrome/chrome_renderer.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/chrome_renderer.gypi b/chrome/chrome_renderer.gypi index c62b7af..d32f853 100644 --- a/chrome/chrome_renderer.gypi +++ b/chrome/chrome_renderer.gypi @@ -190,6 +190,8 @@ 'renderer/safe_browsing/features.h', 'renderer/safe_browsing/phishing_dom_feature_extractor.cc', 'renderer/safe_browsing/phishing_dom_feature_extractor.h', + 'renderer/safe_browsing/phishing_term_feature_extractor.cc', + 'renderer/safe_browsing/phishing_term_feature_extractor.h', 'renderer/safe_browsing/phishing_url_feature_extractor.cc', 'renderer/safe_browsing/phishing_url_feature_extractor.h', 'renderer/speech_input_dispatcher.cc', |