Thursday, 30 May 2024

nessus plugins constantly compiling

 This was a disk space issue

SSH to nessus core server and run df -h look for full drives 

/opt needs 50GB


Location of nessus CLI on linux

/opt/nessus/sbin/nessuscli

nessuscli fix --reset

nessuscli fetch --register <ACTIVATION_CODE>


old way

service nessusd stop

/opt/nessus/sbin/nessusd -R

service nessusd start



If there is still an issue, open a case with nessus and get a debug file from the nessus core server

Reference: https://community.tenable.com/s/article/Requesting-Debugs

Tuesday, 28 May 2024

nessus activation


reset plugins

/opt/nessus/sbin/nessuscli fix --reset


Apply new activation code

 /opt/nessus/sbin/nessuscli fetch --register xxxx-xxxx-xxxx-xxxx



Tuesday, 21 May 2024

email security DMARC, SPF and DKIM

SPF 

Sender policy framework

Identify who (what servers) can send emails for your domain

Like protecting the envelope 

Lookup SPF macros 

v=spf1 mx exists:%{i}._spf.domain.com -all

Now you can add infinite individual A records to _spf.domain.com. This also hides your SPF allow list since you can't query the list of servers.


DKIM

DomainKey Identified Mail standard 

Emails are signed with a signature 

Let's the other end know the email really came from you and not a spammer/attacker 

Like protecting the "letter" or email 

Summary

  • MX (Mail exchange record) - Just like a DNS record that tells people where to send email for your domain. Like a sign telling people which letterbox to drop the mail into.
  • SPF (Sender policy framework) - Who can send emails for your domain. Like a guard standing at the post box.
  • DKIM (DomainKey Identified Mail standard)  - emails are signed with a signature - like a seal or stamp on the letter confirming to the other end it really came from you.
  • DMARC (Domain based Message Authentication Reporting and Conformance) - Combines SPF and DKIM. Checks from address and confirms domain is valid, check return path, checks its a valid signed email.


DMARC 

Domain based Message Authentication Reporting and Conformance 

Makes use of SPF and DKIM

DMARC check 3 things

  • From address, check the from @domain.com (is it real, is it valid)
  • Return path: is it valid (server the mail came from)
  • DKIM: is it a valid signed email
You will need DNS TXT records to set it up, where to send reports and what policy

Version
v=DMAR1 

Policy (good idea to set to none at the start for monitoring)
p=reject 

Email where aggregate DMARC reports will be sent, must be set
rua=mailto:dmarc@domain.com

Forensic data (can have sensitive data inside, should be secure email)
ruf=mailto:dmarc@domain.com

Failure reporting option for forensic DMARC reports 
fo=1

Can't use subdomain (r relaxed, s strict)
adkim=r

Alignment mode for SPF, again about subdomains
aspf=r


  • Monitor / test first
  • Setup proper SPF and DKIM records
  • Then set p=reject
  • Test again

BIMI
Brand Indicators for Message Identification
A way for company logos to show up for confirmed brands
Most people consider it useless
Maybe users will spot an issue with an email if it has no logo
Not everyone adopts/uses it (MS did not support at time of writing) 
If other's are using it you can set it up so your company logo shows up


There are vendors to send the reports and view the reports in a console with graphs etc.
https://dmarcian.com/
https://easydmarc.com/


multiple DMARC entries on _DMARC.domain.com
Use a comma to separate the emails but two is max supported by RFC
Can check on mxtoolbox dmarc tool for testing
rua=mailto:xxxxxxxx@rep.dmarcanalyzer.com,mailto:rua@dmarc.brevo.com;

Tuesday, 30 April 2024

TS FTD like TAC

 https://www.ciscolive.com/c/dam/r/ciscolive/emea/docs/2020/pdf/R6BGArNQ/TECSEC-3004.pdf


system support trace

Wednesday, 3 April 2024

network design ideas

Just writing down some idea's

Dual internet connection with failover (wired and radio/4g would be best but most expensive)
Newer network hardware often have dual WAN support and handle failover for you.
Larger enterprise may want to share public range with BGP between HQ and a DR site.
Alternatively two public IP ranges with dyndns or script to update DNS during failover
OOB management (open gear etc)
Redundancy starting at the SAN.
Rule of thumb 2 of everything infra (you may need to go to 3 or more for apps [pri/sec/test/etc])
Need mpls / L2 site link between HQ and DR sites for failover/vmware/san/backups etc
HA firewall with SSL decrypt/IPS/AV enabled
HA switch (stack or 2 smaller stacks with HSRP/VRRP) or go L3 switching with routing protocols handling HA.
Vlans/networks LAN,WIFI, DMZ, DB, APP, VOICE, RSPAN, OOBMGMT, BACKUPS, MONITORING, 3RDPARTY-ACCESS
Off site (cloud) backups or tape taken off site. We want immutable backups. 3-2-1 backups.
Monitoring, graphing, alerting, PTRG, Netflow, SNMP
Security monitoring from the network / firewall endpoing
NTP server
TFTP server
syslog (syslog-ng)
config backup 
radius and MFA (DUO) where possible 
DNS protection opendns (Cisco umbrella / dnsfilter)
NAT all DNS requests to the umbrella VA's ? or block on firewall other DNS requests
IPS on edge firewalls
SIEM security onion (needs lots of resources)
Nessus scans on internal and external IPs.
Emails security with SPF, DMAR etc.

Multiple DMZs or Private VLANS in your DMZ alternatively consider reverse proxy for extra security.

Friday, 29 March 2024

palo alto bulk add log forwarding profile to security policy rules

You can use the migration tool to do this 


After version 10.1 there is also a log forwarding for security services policy optimizer under 

Policies > Security 

Policy optimizer in the bottom left


You need to have configured logging and your log forwarding profile in advance


Select "None" to find all the rules with no logging policy applied 

click the first rule

scroll to the bottom

hold shift and click the last rule to select all

In the bottom left click "Attach log forwarding profile"

Select your profile "LOG-FWD-PROFILE"

Click ok

Commit


Info found on: 

https://live.paloaltonetworks.com/t5/general-topics/log-forwarding-profile-in-all-security-policies/td-p/205426