# Understand vulnerability tests and NASL scripts

**URL:** <https://forum.greenbone.net/t/understand-vulnerability-tests-and-nasl-scripts/15548>\
**Category:** Vulnerability Tests\
**Created:** [August 23, 2023, 8:03am UTC](https://forum.greenbone.net/t/understand-vulnerability-tests-and-nasl-scripts/15548 "2023-08-23T08:03:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meredith](https://forum.greenbone.net/letter_avatar/meredith/32/6_449c533f586939b6e5f246632a46421f.png) [@meredith](https://forum.greenbone.net/u/meredith)\
**Post date:** [August 23, 2023, 8:03am UTC](https://forum.greenbone.net/t/understand-vulnerability-tests-and-nasl-scripts/15548/1 "2023-08-23T08:03:31Z")

</div>

How invasive is greenbone when it tests for vulnerabilities, which methods are used for internal and external scans?

Are only simple requests used or real penetration testing methods, which can alter system data?

I would also like to understand how the NASL scripts are structured, is there a good tutorial?

---

<div class="post-metadata">

**Author:** ![rippledj](https://forum.greenbone.net/user_avatar/forum.greenbone.net/rippledj/32/4398_2.png) [@rippledj](https://forum.greenbone.net/u/rippledj)\
**Post date:** [August 23, 2023, 8:06pm UTC](https://forum.greenbone.net/t/understand-vulnerability-tests-and-nasl-scripts/15548/2 "2023-08-23T20:06:24Z")

</div>

Here is my attempt at an answer to some questions I consider tough ones 🤔

> [@meredith](#):
>
> How invasive is greenbone when it tests for vulnerabilities, which methods are used for internal and external scans?

There is a setting called `safe_checks` which can be enabled or disabled within a scan config. It will enable or disable specific NVTs that are considered “invasive” to reduce the chance of causing disruption or damage to a system. However, it should be noted that even “safe” or “non-invasive” tests can potentially cause service disruption.

Also, I can add here that “internal” VTs are classified as the families “local\_security\_checks” I think by each OS they apply to and you can see those from the SecInfo → NVTs page in Greenbone.

> [@meredith](#):
>
> Are only simple requests used or real penetration testing methods, which can alter system data?

The NVTs themselves offer a wide range of methods ranging from simple service discovery by querying active services, some “fuzzing” which may try a set of default credentials and interact more with the service’s application layer protocol, and even some “denial of service” tests which will submit malformed data that is known to cause service disruptions to a specific service.

The “service detection” NVTs are used to determine which other VTs (NASL scripts) maybe run against a particular target by discovering what CPEs (products) are active.

> [@meredith](#):
>
> I would also like to understand how the NASL scripts are structured, is there a good tutorial?

There is very little documentation about NASL language on the Internet. To understand how NASL works, I’m afraid the best method would be to examine the `.nasl` and `.inc` files in the `var/lib/openvas/plugins` directory themselves. In lieu of a good tutorial source, I have resorted to using ChatGPT to quickly explain particular files and learn more about how NASL works. You could also use the `nasldocs` package and point it at the `/var/lib/openvas/plugins` directory and it will build a set of documentation for only the `.inc` files which are the NASL “include” files that are generally used by the `.nasl` files to include standard functions.

I’m not aware of which version of NASL OpenVAS uses, and whether it is different than the Nessus version of NASL.

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:19am UTC](https://forum.greenbone.net/t/understand-vulnerability-tests-and-nasl-scripts/15548/4 "2025-04-07T10:19:06Z")

</div>

Closed on April 7, 2025, 10:19am UTC


