Web Application Security Scanner Framework
Arachni is heading towards obsolescence, try out its next-gen successor
Ecsypno Codename SCNR!
Version | 1.6.1.3 |
---|---|
Homepage | http://arachni-scanner.com |
Blog | http://arachni-scanner.com/blog |
Github | http://github.com/Arachni/arachni |
Documentation | https://github.com/Arachni/arachni/wiki |
Code Documentation | http://rubydoc.info/github/Arachni/arachni |
Support | http://support.arachni-scanner.com |
Author | Tasos Laskos (@Zap0tek) |
@ArachniScanner | |
Copyright | 2010-2022 Ecsypno |
License | Arachni Public Source License v1.0 - (see LICENSE file) |
Arachni is a feature-full, modular, high-performance Ruby framework aimed towards
helping penetration testers and administrators evaluate the security of web applications.
It is smart, it trains itself by monitoring and learning from the web application’s
behavior during the scan process and is able to perform meta-analysis using a number of
factors in order to correctly assess the trustworthiness of results and intelligently
identify (or avoid) false-positives.
Unlike other scanners, it takes into account the dynamic nature of web applications,
can detect changes caused while travelling through the paths of a web application’s
cyclomatic complexity and is able to adjust itself accordingly. This way, attack/input
vectors that would otherwise be undetectable by non-humans can be handled seamlessly.
Moreover, due to its integrated browser environment, it can also audit and inspect
client-side code, as well as support highly complicated web applications which make
heavy use of technologies such as JavaScript, HTML5, DOM manipulation and AJAX.
Finally, it is versatile enough to cover a great deal of use cases, ranging from
a simple command line scanner utility, to a global high performance grid of
scanners, to a Ruby library allowing for scripted audits, to a multi-user
multi-scan web collaboration platform.
Note: Despite the fact that Arachni is mostly targeted towards web application
security, it can easily be used for general purpose scraping, data-mining, etc.
with the addition of custom components.
Check
, report
and plugin
developers are allowed to easily and quickly create and
deploy their components with the minimum amount of restrictions imposed upon them,
while provided with the necessary infrastructure to accomplish their goals.
Furthermore, they are encouraged to take full advantage of the Ruby language under
a unified framework that will increase their productivity without stifling them
or complicating their tasks.
Moreover, that same framework can be utilized as any other Ruby library and lead
to the development of brand new scanners or help you create highly customized
scan/audit scenarios and/or scripted scans.
Although some parts of the Framework are fairly complex you will never have to deal them directly.
From a user’s or a component developer’s point of view everything appears simple
and straight-forward all the while providing power, performance and flexibility.
From the simple command-line utility scanner to the intuitive and user-friendly
Web interface and collaboration platform, Arachni follows the principle of least
surprise and provides you with plenty of feedback and guidance.
Arachni is designed to automatically detect security issues in web applications.
All it expects is the URL of the target website and after a while it will present
you with its findings.
autologin
, login_script
or proxy
plugins).Arachni includes an integrated, real browser environment in order to provide
sufficient coverage to modern web applications which make use of technologies
such as HTML5, JavaScript, DOM manipulation, AJAX, etc.
In addition to the monitoring of the vanilla DOM and JavaScript environments,
Arachni’s browsers also hook into popular frameworks to make the logged data
easier to digest:
In essence, this turns Arachni into a DOM and JavaScript debugger, allowing it to
monitor DOM events and JavaScript data and execution flows. As a result, not only
can the system trigger and identify DOM-based issues, but it will accompany them
with a great deal of information regarding the state of the page at the time.
Relevant information include:
DOMWindow
).decodeURIComponent()
).In essence, you have access to roughly the same information that your favorite
debugger (for example, FireBug) would provide, as if you had set a breakpoint to
take place at the right time for identifying an issue.
The browser-cluster is what coordinates the browser analysis of resources and
allows the system to perform operations which would normally be quite time
consuming in a high-performance fashion.
Configuration options include:
The system can provide great coverage to modern web applications due to its
integrated browser environment. This allows it to interact with complex applications
that make heavy use of client-side code (like JavaScript) just like a human would.
In addition to that, it also knows about which browser state changes the application
has been programmed to handle and is able to trigger them programatically in
order to provide coverage for a full set of possible scenarios.
By inspecting all possible pages and their states (when using client-side code)
Arachni is able to extract and audit the following elements and their inputs:
<form>
element but<input>
elements with associated DOM events.http://example.com/#/?param=val¶m2=val2
http://example.com/#/param/val/param2/val2
Arachni is designed to fit into your workflow and easily integrate with your
existing infrastructure.
Depending on the level of control you require over the process, you can either
choose the REST service or the custom RPC protocol.
Both approaches allow you to:
MessagePack
serialization for performance, efficiency and ease of<form>
element<input>
elements with associated DOM events.GET
and POST
HTTP methods.Arachni is a highly modular system, employing several components of distinct
types to perform its duties.
In addition to enabling or disabling the bundled components so as to adjust the
system’s behavior and features as needed, functionality can be extended via the
addition of user-created components to suit almost every need.
In order to make efficient use of the available bandwidth, Arachni performs
rudimentary platform fingerprinting and tailors the audit process to the server-side
deployed technologies by only using applicable payloads.
Currently, the following platforms can be identified:
The user also has the option of specifying extra platforms (like a DB server)
in order to help the system be as efficient as possible. Alternatively, fingerprinting
can be disabled altogether.
Finally, Arachni will always err on the side of caution and send all available
payloads when it fails to identify specific platforms.
Checks are system components which perform security checks and log issues.
Active checks engage the web application via its inputs.
sql_injection
) – Error based detection.
sql_injection_differential
).sql_injection_timing
).
no_sql_injection
) – Error based vulnerability detection.
no_sql_injection_differential
).csrf
).code_injection
).
code_injection_timing
).
ldap_injection
).path_traversal
).
file_inclusion
).
response_splitting
).os_cmd_injection
).
os_cmd_injection_timing
).
rfi
).unvalidated_redirect
).unvalidated_redirect_dom
).xpath_injection
).
xss
).xss_path
).xss_event
).xss_tag
).xss_script_context
).xss_dom
).xss_dom_script_context
).source_code_disclosure
)xxe
).
Passive checks look for the existence of files, folders and signatures.
allowed_methods
).backup_files
).backup_directories
)common_admin_interfaces
).common_directories
).common_files
).http_put
).unencrypted_password_form
).webdav
).xst
).credit_card
).cvs_svn_users
).private_ip
).backdoors
).htaccess_limit
).interesting_responses
).html_objects
).emails
).ssn
).directory_listing
).mixed_resource
).insecure_cookies
).http_only_cookies
).password_autocomplete
).origin_spoof_access_restriction_bypass
)form_upload
)localstart_asp
)cookie_set_for_parent_domain
)Strict-Transport-Security
headers for HTTPS sites (hsts
).X-Frame-Options
headers (x_frame_options
).insecure_cors_policy
).insecure_cross_domain_policy_access
)insecure_cross_domain_policy_headers
)insecure_client_access_policy
)html
).xml
).text
).json
)marshal
)yaml
)afr
)
Plugins add extra functionality to the system in a modular fashion, this way the
core remains lean and makes it easy for anyone to add arbitrary functionality.
proxy
) – Analyzes requests and responses between the web app andautologin
).login_script
).http_dicattack
).form_dicattack
).cookie_collector
) – Keeps track of cookies while establishing a timeline of changes.waf_detector
) – Establishes a baseline ofbeep_notify
) – Beeps when the scan finishes.email_notify
) – Sends a notification (and optionally a report) over SMTP atvector_feed
) – Reads in vector data from which it creates elements to bescript
) – Loads and runs an external Ruby script under the scope of a plugin,uncommon_headers
) – Logs uncommon headers.content_types
) – Logs content-types of server responses aiding in thevector_collector
) – Collects information about all seen input vectorsheaders_collector
) – Collects response headers based on specified criteria.exec
) – Calls external executables at different scan stages.metrics
) – Captures metrics about multiple aspects of the scan and the web application.restrict_to_dom_state
) – Restricts the audit to a single page’s DOMwebhook_notify
) – Sends a webhook payload over HTTP at the end of the scan.rate_limiter
) – Rate limits HTTP requests.page_dump
) – Dumps page data to disk as YAML.Default plugins will run for every scan and are placed under /plugins/defaults/
.
autothrottle
) – Dynamically adjusts HTTP throughput during the scan forhealthmap
) – Generates sitemap showing the health of each crawled/audited URLPlugins under /plugins/defaults/meta/
perform analysis on the scan results
to determine trustworthiness or just add context information or general insights.
timing_attacks
) – Provides a notice for issues uncovered by timing attacksdiscovery
) – Performs anomaly detection on issues logged by discoveryuniformity
) – Reports inputs that are uniformly vulnerable across a numberThe Trainer is what enables Arachni to learn from the scan it performs and
incorporate that knowledge, on the fly, for the duration of the audit.
Checks have the ability to individually force the Framework to learn from the
HTTP responses they are going to induce.
However, this is usually not required since Arachni is aware of which requests
are more likely to uncover new elements or attack vectors and will adapt itself
accordingly.
Still, this can be an invaluable asset to Fuzzer checks.
You can run rake spec
to run all specs or you can run them selectively using the following:
rake spec:core # for the core libraries
rake spec:checks # for the checks
rake spec:plugins # for the plugins
rake spec:reports # for the reports
rake spec:path_extractors # for the path extractors
Please be warned, the core specs will require a beast of a machine due to the
necessity to test the Grid/multi-Instance features of the system.
Note: The check specs will take many hours to complete due to the timing-attack tests.
Submit bugs using GitHub Issues and
get support via the Support Portal.
(Before starting any work, please read the instructions
for working with the source code.)
We’re happy to accept help from fellow code-monkeys and these are the steps you
need to follow in order to contribute code:
git checkout -b <feature-name> experimental
).rake spec:core
rake spec
for everything).Arachni Public Source License v1.0 – please see the LICENSE file for more information.