Repository: prowler-cloud/prowler
Issue category: Bug Report

Issue:
Prowler CSV Output no longer outputs Failed Critical Findings
### Steps to Reproduce

Running prowler 4.5.3
Execute prowler aws against an AWS account. 
CSV Outputs PASS critical findings but does output FAIL findings.

Prowler Dashboard does not display any cirtical findings

It was working with 4.3.5 but after I upgraded to 4.5.3 this now fails.

json-ocsf files are fine. These do contain Critical Fail


### Expected behavior

Failed critical findings to be contained in CSV file to use with prowler dashboard

### Actual Result with Screenshots or Logs

prowler aws --output-bucket-no-assume prowler-output-bucket-XXXXXXXXXXXX --output-directory output --slack --role arn:aws:iam::XXXXXXXXXXXX:role/XXXXXXXXXXX --role-session-name XXXXX_XXXXXX

### How did you install Prowler?

From pip package (pip install prowler)

### Environment Resource

2. Fargate Task running python:alpine with python 3.12

### OS used

3. Alpine Linux

### Prowler version

4.5.3

### Pip version

3.12

### Context

_No response_


Hints:
Hello! @garym-krrv Could you add the `--log-level ERROR` flag to your Prowler execution to see if we can find logs that indicate what the error might be?
Will do.. let me get back to you @pedrooot 

Many Thanks

Patch:
diff --git a/prowler/providers/aws/services/ec2/lib/instance.py b/prowler/providers/aws/services/ec2/lib/instance.py
index 150d37db52e..bef05ad7c50 100644
--- a/prowler/providers/aws/services/ec2/lib/instance.py
+++ b/prowler/providers/aws/services/ec2/lib/instance.py
@@ -1,3 +1,4 @@
+from prowler.lib.check.models import Severity
 from prowler.providers.aws.services.ec2.ec2_service import Instance
 from prowler.providers.aws.services.vpc.vpc_service import VpcSubnet
 
@@ -15,13 +16,13 @@ def get_instance_public_status(
         tuple: The status and severity of the instance status.
     """
     status = f"Instance {instance.id} has {service} exposed to 0.0.0.0/0 but with no public IP address."
-    severity = "medium"
+    severity = Severity.medium
 
     if instance.public_ip:
         status = f"Instance {instance.id} has {service} exposed to 0.0.0.0/0 on public IP address {instance.public_ip} but it is placed in a private subnet {instance.subnet_id}."
-        severity = "high"
+        severity = Severity.high
         if vpc_subnets[instance.subnet_id].public:
             status = f"Instance {instance.id} has {service} exposed to 0.0.0.0/0 on public IP address {instance.public_ip} in public subnet {instance.subnet_id}."
-            severity = "critical"
+            severity = Severity.critical
 
     return status, severity


Test patch: