diff --git a/landing_page/templates/landing_page.html b/landing_page/templates/landing_page.html index 3c6b77a..99f799f 100644 --- a/landing_page/templates/landing_page.html +++ b/landing_page/templates/landing_page.html @@ -74,7 +74,7 @@
Service & Vulnerabilit

Identifies server services and potential vulnerabilities with recommendations for security improvements

-
+ {% csrf_token %}
diff --git a/landing_page/templates/ldih_landing.html b/landing_page/templates/ldih_landing.html index 12b272a..1da063c 100644 --- a/landing_page/templates/ldih_landing.html +++ b/landing_page/templates/ldih_landing.html @@ -2,27 +2,52 @@ {% block content %} {% load static %} +
+
+
+
+
+

The nc3 Testing Platform

+
+

Fostering Best Practices & +
+ Securing + Luxembourg Digital Future.

+

Modern Internet Standards provide for + more + reliability and further + growth of the Internet. Are you using them?

+
+
+

+ The NC3 Testing platform offers a range of straightforward and efficient tests + designed to assist your organization in evaluating the initial security status + of + your websites, email systems, and infrastructure. These tests are conducted in a + non-invasive manner, focusing on discovery rather than exploiting any identified + vulnerabilities.

+

You can find more details on the + Testing + Continuum + information page.

+
+ +
+
-
- - -
-

- The testing platform holds the tools and services that will help organisations to perform basic tests on - their most commonly exposed infrastructures, starting with email and web servers. More tools will be added - through time to increase the coverage of available tests. -

-
-

- Register now! -

-
+
-

Welcome to the nc3 Testing Platform!

+
+
+

Welcome to the nc3 testing platform

+
+
+
-

Why such a platform?

-

+

Why such a platform?

+ +

When implementing a security strategy, one of the core issues is to identify priorities. Budgets are not infinite. Choices have to be made. A fair amount of guidance can be drawn from the traditional risk assessment exercises, but this often leads to abstract decision-making. In particular, how to identify @@ -32,8 +57,8 @@

Why such a platform?

-

What is the NC3 Testing Platform?

-

It’s a set of tools that allow any organisation to start testing its systems in order to identify known +

What is the NC3 Testing Platform?

+

It’s a set of tools that allow any organisation to start testing its systems in order to identify known weaknesses or vulnerabilities. Some of these tools will require working with security companies of the Luxembourg Cybersecurity Ecosystem and who agreed to partner with the NC3. Other tools are semi-automated and operated directly by the NC3.
@@ -53,8 +78,8 @@

What is the NC3 Testing Platform?

-

Who can benefit from the Testing Platform?

-

+

Who can benefit from the Testing Platform?

+

You have to be an organisation based in Luxembourg in order to access the Testing Platform. If you wish to register, you can follow this link. You'll fill a simple form and then be able to chose which services you want to benefit from. @@ -64,4 +89,122 @@

Who can benefit from the Testing Platform?

+
+
+
+ +
+
+
+

Contact us

+
+
+

Reach out to the National Cybersecurity Competence Center + Team

+ We’d love to hear from you! Please get in touch. +
+
+
+
+
+
+
+ + + + + + Send us an email + Speak with our team. + info@nc3.lu +
+
+ + + + + + Call us + Mon-Fri from 9am to 5pm. + +352 274 00 98 + 667 +
+
+ + + + + + + Visit us + Visit our office. + 122, rue + Adolphe Fischer L-1521 Luxembourg +
+
+
+
+
+ +
+ + +
+ + + + {% endblock %} diff --git a/test.html b/test.html deleted file mode 100644 index 999eaa5..0000000 --- a/test.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - VPN Required - - - -
-
🔒
-

VPN Required

-

Access to this site requires a secure VPN connection.

- -
- - \ No newline at end of file diff --git a/testing/templates/check_email.html b/testing/templates/check_email.html index e415a14..f697243 100644 --- a/testing/templates/check_email.html +++ b/testing/templates/check_email.html @@ -50,9 +50,11 @@

Assess the security of your ema class="text-white button-text-background primary-primary-blue_background"> {% if domain %} - + {% if user.is_authenticated %} + + {% endif %} {% endif %}
About the test @@ -218,14 +220,43 @@

SPF Record

DMARC Record

- {{ dmarc }} -

Valid: - {% if dmarc.valid %} - - {% else %} - - {% endif %} -

+ {% if dmarc.error %} + + {% else %} + + + {% if dmarc.record %} + + +

Record Details:

+
    + {% for item in dmarc.record|split:';' %} + {% with key_value=item|split:'=' %} + {% if key_value|length == 2 %} +
  • + {{ key_value.0 }}: {{ key_value.1 }} +
  • + {% endif %} + {% endwith %} + {% endfor %} +
+ {% endif %} + {% endif %} +
@@ -309,8 +340,25 @@

DKIM Record

-

DMARC Record

- {{ dnssec }} +

DNSSEC Record

+ {% if dnssec.error %} + + {% else %} + + + {% if dnssec.keys %} + + {% endif %} + {% endif %} +

Enabled: {% if dnssec.enabled %} @@ -324,7 +372,7 @@

DMARC Record

- diff --git a/testing/templates/check_file.html b/testing/templates/check_file.html index 40cb786..0b429b8 100644 --- a/testing/templates/check_file.html +++ b/testing/templates/check_file.html @@ -21,7 +21,7 @@

Use our variety of tools to
-
+ {% csrf_token %} {% if error %} {{ error }} @@ -30,7 +30,7 @@

Use our variety of tools to - +

@@ -41,23 +41,25 @@

Use our variety of tools to

{% if result %} -
-
-

File Test Results

- {% if result.success %} - {% if result.status == "CLEAN" %} - Clean File! - {% else %} - Please check the details of the scan! - {% endif %} -
- Details of the scan. - {% endif %} -
- Results provided by the Pandora Analysis framework. -
+
+
+
+

File Test Results

+ {% if result.success %} + {% if result.status == "CLEAN" %} + Clean File! + {% else %} + Please check the details of the scan! + {% endif %} +
+ Details of the scan. + {% endif %} +
+ Results provided by the Pandora Analysis framework. +
+
+
-
{% endif %} {% endblock %} diff --git a/testing/templates/check_infra.html b/testing/templates/check_infra.html index e080765..8e198b4 100644 --- a/testing/templates/check_infra.html +++ b/testing/templates/check_infra.html @@ -36,9 +36,11 @@

class="text-white button-text-background primary-primary-blue_background"> {% if services %} - + {% if user.is_authenticated %} + + {% endif %} {% endif %}
About the test diff --git a/testing/templates/check_webapp.html b/testing/templates/check_webapp.html index 3939f19..0634ff7 100644 --- a/testing/templates/check_webapp.html +++ b/testing/templates/check_webapp.html @@ -39,9 +39,11 @@

Assesses web security, includin class="text-white button-text-background primary-primary-blue_background"> {% if domain %} - + {% if user.is_authenticated %} + + {% endif %} {% endif %}

diff --git a/testing/views.py b/testing/views.py index 57af4d6..4007ad1 100644 --- a/testing/views.py +++ b/testing/views.py @@ -226,12 +226,15 @@ def email_test(request): def file_test(request): - if request.method == "POST" and request.FILES["target"]: - context: Dict[str, Any] = {} - file_to_check = request.FILES["target"].read() - file_to_check_name = request.FILES["target"].name - context.update(file_check(file_to_check, file_to_check_name)) - return render(request, "check_file.html", context) + if request.method == "POST": + if "target" in request.FILES: + context: Dict[str, Any] = {} + file_to_check = request.FILES["target"].read() + file_to_check_name = request.FILES["target"].name + context.update(file_check(file_to_check, file_to_check_name)) + return render(request, "check_file.html", context) + else: + return render(request, "check_file.html", {"error": "There was an error with the provided file. Please try again later."}) else: return render(request, "check_file.html")