Monday, November 12, 2018

Howto find bad linux login attempts



The files  wtmp and btmp are  typically  for tracking  successful and bad logins. To find  bad logins just run the  last or lastb commands. The former  requires you specify the  file "btmp" and the later does it automatically.




It's good to monitor btmp  since it can  give clues that a brute force login attack is under way or some one is having major login problems.







NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \
 

FTNT stock is growing

Pictures says a thousand words








NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \

Sunday, November 11, 2018

Let's Encrypted Made Easy

For "Let's Encrypt" You typically  use a acme client. A lot  devices support the acme but if you do not have a supported os, than sslforfree.com is gear'd for you.

The steps to generate a free certificate . YES  100% FREE! is very easy.

1: Generate a CSR 
2: add the  txt files that they  present for the acme challenge
3: execute a manual update 

Afterward upload you x509 certificate to the device













-----BEGIN CERTIFICATE-----
MIIFZzCCBE+gAwIBAgISAzXqLOBMEor1AKK5+ibWj8S2MA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xODExMTIwMjE4MzRaFw0x
OTAyMTAwMjE4MzRaMBkxFzAVBgNVBAMTDnNvY3B1cHBldHMuY29tMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA436Ue8gDRg75msayqqv/Ld7kW3Wmzx0Z
S27VZsmuKrM40H0bcOJVg6GKJ4Yf3dZFrPCm7ZqlAQL3Zlk6Ozbcv85yG3xNwiwb
SPEp/VhObkr0G8nh6TUtSJnABhxlwWTS7S6EyNzEBuj/EXqfo5zs8IfqZZmhQUcH
0yKQlQEG69YY45Jbo1xcUB5vjeXkQR2RP6E5lfW/Xhx3HKzP/QIlrBoxASEL62lN
yeoj/Nn135V5TXh8NYNveEVy2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BEerAfTe
+pBLaXDJXl4sxhkaH9pPNQiKFpqOf+SrX/S8iEBWewdQCRLDf2gbaEp4lbSTUmWy
mZ2ZUhOX8RaXgeHy2MdL4bl86JwD2bUyC9Lzy1pDtj2agGHPcmdI7v830bMQvIPD
reZizQ0LfhJx26ASmSoWKdey5sKfoIOBnCZjWivZvnTPT/FOI0wR68PLL+qZqyH/
xo5haHFFdMHQ1DfUdj3KNLSin8fpiBARWeCNyLcIi8x7ScfM3H6CS13T3A==

-----END CERTIFICATE-----



That's all that it takes, in less than 10-15minutes, you can have a valid and trusted certificate. Just remember the cert is good for only 90days per  "Let'S Encrypt" Policy

https://letsencrypt.org/docs/integration-guide/









NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \
 

bogon static list at cymu

https://www.team-cymru.org/Services/Bogons/fullbogons-ipv4.txt

The format of this list output can be used to  quickly rebuild prefix-lists



note:  output cutoff

You can use a script or   for loop and  add these entries into  your  network/security appliance and apply a drop  action for sources from these and any routing information that could be reached for network reachability.









NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \

Saturday, November 10, 2018

Junos API issues

In  RLS 18.3 I found a issues where the API interface would not  run. No system process or  listen on my  http/https  service ports.

 I 1st I thought it was web-management config





But the problem really was the fact that rest-api process could not  write traceoption to the directory due to it being "RO"  { read-only }

By disable of  the traceoptions the  api process { ligthttpd } could start up and now my  rest explorer runs on the SRX appliance.


Examples of a basic API enablement   and validation in  JunosSRX





I hope this helps for others running the API interface on a juniper SRX. Now with this  process running, I can resume making my  API calls to the  Juniper Device.








NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \
 

Friday, November 9, 2018

Entrust L1K has two intermediate-certs

On the  Entrust L1K most Security engineers do not know  two L1K  exists and both are  validate subCA. Take this  FireFox   cert-store and the output of these two  intermediates  name L1K

NOTE:  I highlighted some key Identifiers  using  the colored arrows ;




These two  certificates  authorities are signed by Entrust Root CA G2 and the expiration  would always be less than the rootCA which expires  DEC-7-2030


So  keep this in mind when review entrust intermediate  CAs.







NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \
 

Monday, November 5, 2018















The Top Level CA root for Let's Encrypt is  dictated  in this snapshot.












NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \