Commit Graph
710 Commits
Author SHA1 Message Date
danielsagi 3df7ea85bc fixed linting issues 2022-05-28 14:51:43 -07:00
danielsagi 2fac662c51 Refactored 'quick' option to 'full-cloud-scan'. now negating this behaviour. default to always scan /24 CIDR 2022-05-28 14:50:26 -07:00
danielsagi efc6bb69f2 Fixed bug in apiVersions 2022-05-28 14:24:47 -07:00
danielsagi 0119a1cb3f added evidence to azure metadata exposure 2022-05-28 13:50:30 -07:00
danielsagi 8b1e7c7454 fixed typo on extract_subnets in azure scanning 2022-05-28 13:33:17 -07:00
danielsagi dcfd733cbe fixed IPAddress to < conversion failure 2022-05-28 13:27:29 -07:00
danielsagi a1b218eb7b removed unessesary prints in apiserver tests 2022-05-28 13:14:52 -07:00
danielsagi 631721ae02 fixed linting issues 2022-05-28 13:11:47 -07:00
danielsagi f674a99675 added azure subnet extraction as a new hunter AzureSubnetDiscovery. also added specific tests 2022-05-28 12:36:47 -07:00
danielsagi f0a10c4e65 fixed all azure tests 2022-05-26 08:52:43 -07:00
danielsagi 015c5ae00f WIP: added tests for AKS metadata api discovery 2022-05-26 08:26:34 -07:00
danielsagi 4afbe5d6de WIP: moved registered AKS hunting to multiple subscribe, added Azure version api extraction 2022-05-20 01:38:46 -07:00
Daniel Sagi 5b94375903 initial refacotr, moved all aws logic to seperate module 2022-05-19 18:04:08 +03:00
danielsagiandGitHub a578726495 update manifest to 0.6.8 (#509) v0.6.8 2022-05-13 12:49:12 +03:00
rhtenhoveandGitHub c442172715 pin image version (#504)
* pin image version to job

* change docker tag format

* update semver GA
2022-05-13 00:27:39 +03:00
danielsagiandGitHub d7df38fc95 Fix: Removed automatic import of handler object (#506)
* removed automatic import of handler object in events package and renamed handler.py to event_handler.py to solve name collision
2022-05-12 22:12:31 +03:00
danielsagi 9ce385a190 ignore E402 flake8 on test_cloud v0.6.7 2022-05-07 10:22:17 +03:00
danielsagi ebd8e2e405 Moved config initialize to start of test_cloud.py to solve bug in testing 2022-05-07 10:22:17 +03:00
danielsagi 585b490f19 Changed help message of --num-worker-threads flag 2022-05-07 10:22:17 +03:00
Florian Bachmannanddanielsagi 6c4ad4f6fd Solves: Make thread count configurable #433 2022-05-07 09:29:00 +03:00
danielsagiandGitHub e6a3c12098 Remove scapy usage (#500)
* removed arp and dns hunters usage due to it's violations of the scapy GPL2 license

* added installation of arp and dns hunters to Dockerfile

* added explicit new version to plugins in dockerfile installation

* ignore B020 flake8
v0.6.6
2022-05-07 09:09:09 +03:00
danielsagiandGitHub 2a7020682e Update image tag of aqua version 2022-03-28 17:33:22 +03:00
Owen RumneyandGitHub e1896f3983 docs: lowercase the severities for AVD (#495)
Signed-off-by: Owen Rumney <owen@owenrumney.co.uk>
2022-03-25 09:03:43 +00:00
jerbiaandGitHub fc7fbbf1fc Added severity to the kube-hunter found issues (#492) 2022-03-22 11:03:05 +02:00
danielsagiandGitHub 7c62cc21af Feature: Custom Hunting (#489)
* added partial and partial-names flag. mechanism for whitelisting hunter subscrption for custom hunts

* changed name from partial to custom

* ran black to format

* flake8 formatting

* added documentation in readme for Custom hunting and made Advanced Usage a higher level topic

* added Collector, StartedInfo and SendFullReport to the core_hunters

* changed old name class-names to raw-hunter-names

* fixed bug in import loop
v0.6.5
2022-01-28 18:54:36 +02:00
JuvenileandGitHub c17aa17096 ignore https certificate verification (#484) v0.6.4 2022-01-22 16:06:39 +02:00
testnandGitHub 4204879251 Update README.md (#487)
Fix typo
2022-01-22 16:05:20 +02:00
danielsagiandGitHub a746bd0eb1 Added correct exception handling for discovery of Metadata apis (#488)
* Added correct exception handling for discovery of Metadata apis

* fixed linting issues
2022-01-22 15:56:04 +02:00
danielsagiandGitHub b379e64314 Added MITRE documentation in README (#485)
* Added documentation about differences between vulnerabilities and the attack matrix techniques

* moved docs to start of README, also created MITRE image, showing covered areas of kube-hunter

* fixed link in readme
2022-01-14 00:00:29 +02:00
danielsagiandGitHub 00eb0dfa87 Switched CVE Hunting to optional & Minor core feature (#482)
* Removed automatic registration of the k8s CVE hunter

* Made CVE hunting optional, default set to not run
v0.6.3
2021-10-16 17:49:00 +03:00
danielsagiandGitHub 8d045fb1a8 Fix all of github action workflows (#481)
* fixed all of workflows
v0.6.2
2021-10-16 17:23:41 +03:00
danielsagiandGitHub 83b19d4208 Feature: Changed vulnerability categories to support MITRE ATT&CK (#474)
* Refactored all categories to the new MITRE attack matrix format

* Changed format of vulnerabilities table to display the mitre technique related to the vulnerability
2021-09-30 15:25:30 +03:00
danielsagiandGitHub 473e4fe2b5 Make gateway discovery always run when running as pod #471 v0.6.1 2021-07-23 21:09:28 +03:00
danielsagiandGitHub f67f08225c changed exception logs to debug logs in kubernetes_client nodes discovery (#470) v0.6.0 2021-07-22 15:57:25 +03:00
danielsagiandGitHub c96312b91e updated gemfile (#464) 2021-06-24 21:15:18 +03:00
danielsagiandGitHub a7d26452fb Feature: New Service Account Token Flag (#463)
* added service account token flag to use in hunting

* added flag to main parsing config creation

* fixed linting issues

* added documentation on the service-account-token flag

* minor readme change
2021-06-24 20:58:43 +03:00
danielsagiandGitHub e63efddf9f Support multiple subscription on ProveVarLogMount active hunter (#461)
* removed redundant call for /pods again from /var/log mount hunter, by using multiple subscription

* fixed new linting

* fixed linting with exceptions
2021-06-24 18:43:14 +03:00
6689005544 K8s autodiscovery (#453)
* Add a new dependency on Kubernetes package

* Add and store a new flag about automatic nodes discovery from a pod

* Implement the listing of nodes

* Add tests to cover the k8s node listing

* Fix the k8s listing test to ensure the load incluster function is actually called

* Add more help to the k8s node discovery flags, and cross-reference them.

* Add a note on the Kubernetes auto-discovery in the main README file

* Move the kubernetes discovery from conf to modules/discovery

* When running with --pods, run the Kubernetes auto discovery

* Also mention that the auto discovery is always on when using --pod

Co-authored-by: Mikolaj Pawlikowski <mpawlikowsk1@bloomberg.net>
v0.5.2
2021-06-05 15:53:07 +03:00
danielsagiandGitHub 0b90e0e43d Bugfix - Aws metadata api discovery (#455)
* fixed aws metadata bug

* added new black reformatting
v0.5.1
2021-05-27 21:41:43 +03:00
65eefed721 Multiple Subscriptions Mechanism (#448)
* Add multiple subscription mechanism

* PR: address comments

* improved implementation, solved a couple of bugs, added documentation to almost the whole backend process

* added corresponding tests to the new method of the multiple subscription

* fixed linting issue

* fixed linting #2

Co-authored-by: Raito Bezarius <masterancpp@gmail.com>
2021-04-25 19:27:41 +03:00
danielsagiandGitHub 599e9967e3 added pypi publish workflow (#450) v0.5.0 2021-04-23 14:37:31 +03:00
Tommy McCormickandGitHub 5745f4a32b Add discovery for AWS metadata (#447) 2021-04-21 20:57:17 +03:00
danielsagiandGitHub 1a26653007 Added Advanced Usage section to the readme, documenting azure quick scanning (#441) 2021-04-08 19:20:09 +03:00
miwithroandGitHub cdd9f9d432 Update KHV003.md (#439) 2021-03-16 17:17:55 +02:00
Simarpreet SinghandGitHub 99678f3cac deps: Update github pages dependencies (#431)
Signed-off-by: Simarpreet Singh <simar@linux.com>
2021-01-17 16:03:04 +02:00
danielsagiandGitHub cdbc3dc12b Bug Fix: False Negative On AKS Hunting (#420)
* removed false negative in AzureSpnHunter when /run is disabled

* changed to use direct imported class

* fixed multiple bugs in azure spn hunting, and improved efficency

* fixed bug in cloud identification. TODO: remove the outsourcing for cloud provider

* removed unused config variable

* fixed tests to use already parsed pods as the given previous event has changed
v0.4.1
2021-01-07 19:46:00 +02:00
d208b43532 feat: github actions to publish ecr and docker (#429)
* feat: github actions to publish ecr and docker

* test: github actions to publish ecr and docker

* chore: yaml lint github actions

* chore: yaml lint github actions

* fix: secrets envs for github action

* chore: build and push action for ecr/docker

Co-authored-by: Carol Valencia <krol3@users.noreply.github.com>
2020-12-26 21:31:53 +02:00
Itay ShakuryandGitHub 42250d9f62 move from master branch to main (#427) 2020-12-17 16:16:16 +02:00
d94d86a4c1 Created a Vulnerability Disclosure README (#423)
* Created a vulnerability disclosure readme

* Update SECURITY.md

Co-authored-by: Liz Rice <liz@lizrice.com>

* Update SECURITY.md

Co-authored-by: Liz Rice <liz@lizrice.com>

* Update SECURITY.md

Co-authored-by: Liz Rice <liz@lizrice.com>

Co-authored-by: Liz Rice <liz@lizrice.com>
2020-12-17 15:16:28 +02:00
danielsagiandGitHub a1c2c3ee3e Updated kramdown (#424)
Updated kramdown to a newer patched version, the old version was not patched to CVE-2020-14001
2020-12-17 11:50:02 +00:00