Рубрика: Без рубрики

  • How to build the BGP UPDATE packet


    bgp-update-create is a small program used to generate the payload of a BGP UPDATE message. It was written to test if routes could be injected in a BGP conversation between two routers.

    It’s usage is very simple; it takes three parameters:

    —as: Autonomous System number

    —nexthop: Host name or IP address of next hop

    —destnet: Network number/prefix to advertise

    To use it with tcphijack you just pipe its output to tcphijack, like in:

    sudo bgp-update-create —as 2 —nexthop 1.1.1.1 —destnet 2.2.2.2 | tcphijack […]

    or just send its output to a file and then use tcphijack’s -P switch to specify a payload:

    bgp-update-create —as 2 —nexthop 1.1.1.1 —destnet 2.2.2.2 > payload.dat


    sudo tcphijack […] -P payload.dat


    bgp-update-create
    is built at the same time as tcphijack (by typing «make»), the header files used by bgp-update-create.c come from the Zebra project.



    BGP Update Create download
     

  • How to find the JETPLOW on Cisco firewalls installed

    How to find the JETPLOW on Cisco firewalls installed

    JETPLOW is a firmware persistence implant for Cisco PIX Series and ASA (Adaptive Security Appliance) firewalls. It persists DNT’s BANANAGLEE software implant. JETPLOW also has a persistent back-door capability.

    NSA - ANT Product data

    JETPLOW is a firmware persistence implant for Cisco PIX Series and ASA (Adaptive Security Appliance) firewalls. It persists DNT’s BANANAGLEE software implant and modifies the Cisco firewall’s operating system (OS) at boot time. If BANANAGLEE support is not available for the booting operating system, it can install a Persistent Backdoor (PDB) designed to work with BANANAGLEE’S communications structure, so that full access can be reacquired at a later time. JETPLOW works on Cisco’s 500-series PIX firewalls, as well as most ASA firewalls (5505, 5510, 5520, 5540, 5550).

    A typical JETPLOW deployment on a target firewall with an exfiltration path to the Remote Operations Center (ROC) is shown above. JETPLOW is remotely upgradable and is also remotely installable provided BANANAGLEE is already on the firewall of interest.

    Status: Released. Has been widely deployed. Current availability restricted based on OS version (inquire for details).

  • Why the Russian Hackers strikes back

    Why the Russian Hackers strikes back

    The Russian Federation holds an interesting, albeit a dubious position in the ranks of nation state cyber-actors. While ranked third among countries in terms of volume of cyber activity (behind the U.S. and China, according to Deutsche Telekom’s honeypot network data), Russia is widely regarded as a having the most sophisticated and skilled hackers.

    BGP MiTM attacks are common in Putin's Cyber Union

    Unlike the Chinese government which employs thousands of hackers in the People’s Liberation Army, the Russian government’s relationship with resident hackers is much murkier. The trails to cyber-attacks originating in Russia tend to end at civilian hacktivist groups and criminal organizations, perhaps providing officials with plausible deniability. This may suggest an implicit support for criminal hackers in Russia, given government’s notorious reputation as being inherently corrupt.

    Given the highly publicized industry hacks attributed to Russian entities, it’s easy to conclude that the government’s motivation behind hacking is directly related to financial gain. But that conclusion is, perhaps, somewhat simplistic. As an alternative, consider viewing Russian hacking through the prism of geo-politics. It is feasible that the Russian government has established an iniquitous partnership with Russian civilian hackers to achieve geo-political goals. It may not be possible to know with certainty what motivates the government to participate in nefarious cyber activity, but it’s equally conceivable that Russian officials views hacking, or more appropriately cyber warfare, as a political tool which, when employed, is extremely effective at helping a nation state achieve a geopolitical goal.

    The notion that the Russian government is willing to use the cyber domain as a political, if not military, arena is not new. Recall the cyber-attacks alleged to have been orchestrated by the Russian Government during the 2008 Russo-Georgian War, a war considered by some to be the first cyber-war. Post war analysis suggests that the Russian Government leveraged the vast network of civilian cyber actors, including organized crime organizations, to conduct the attacks. The military significance of the cyber-targets attacked during the war, and the synchronization of the attacks with Russian military operations may be too coincidental to reasonably conclude Russian civilian hackers were acting autonomously.

    In December 2014, the German Federal Office for Information Security (BSI) disclosed that a cyber-attack was executed on a steel plant, resulting in the abnormal shut down of a large blast furnace and associated systems. The BSI report characterized the attackers as highly skilled, and that they used social engineering and extensive knowledge of the network to circumvent security and specialized software designed to prevent such attacks. It is difficult to identify with certainty the parties responsible for these attacks, but the timing of diplomatic talks between the Ukraine and Germany point toward the Russian government. This cyber-attack is significant because it signals an escalation in tactics, a willingness to create physical damage to infrastructure.

    More recently, the shutdown of German Government websites, which overlapped with a scheduled meeting this month between German President Joachim Gauck and Ukrainian Prime minister Arsney Yatseniuk, strongly suggests a connection between cyber operations conducted by Russian hacker groups and Russian politicos. The Russian hacktivist group, CyberBerkut, claimed responsibility for the attacks and demanded the Germans withdraw support for Ukraine. We can’t be certain that CyberBerkut was sponsored by the Russian government, but the timing of the cyber attacks with Russian activity in the Ukraine is compelling.

    The renowned German military theorist Carl von-Clausewitz believed war to be a political instrument, and we can easily extrapolate Clausewitz’ thought to cyberwar in a modern context. With that point in mind, the Russian government has applied Clausewitz’ theories to achieve national political goals by leveraging an increasingly sophisticated hacker population. While the U.S. and many of her allies grapple with the implications of conducting offensive cyber operations, the Russian Government is writing the first book on geopolitics and global cyber warfare.

  • Cyprus local Cisco Networking Academy

    Cyprus local Cisco Networking Academy

    CCNA Exploration on Cyprus offers in-depth theory, challenging labs, and a detailed overview of protocol operations. It is designed for students with advanced problem-solving and analytical skills, such as degree candidates in engineering, mathematics, or science, or for working professionals who would like to advance their careers or gain certification

    The Cisco CCNA Exploration curriculum provides a comprehensive overview of networking; from fundamentals to advanced applications and services, while providing opportunities for hands-on practical experience and soft-skills development. 


    The curriculum teaches networking based on technology, covering networking concepts using a top-down, theoretical, and integrated approach – from network applications to the network protocols and services provided to those applications by the lower layers of the network. In addition, it offers a comprehensive and theoretical learning experience for analytical students, and uses language that aligns well with engineering concepts. Interactive activities are embedded in the curriculum, along with detailed, theoretical content. Advanced labs build critical thinking and problem solving skills and encourage exploration and research.


    As Cisco states “Cisco Networking Academy delivers a comprehensive, 21st century learning experience to help students develop the foundational ICT skills needed to design, build, and manage networks, along with career skills such as problem solving, collaboration, and critical thinking. Students complete hands-on learning activities and network simulations to develop practical skills that will help them fill a growing need for networking professionals around the world.


    CCNA bootcamp at Limassol



    Please feel free to see the motion pictures from previous classes above

  • Yersinia is the best network Layer 2 hacking tool

    Yersinia is the best network Layer 2 hacking tool

    It’s really hard to beat layer 2 hacking to really mess stuff up. While folks are up at layer 4-7 messin’ around with this socket or that scripting vuln, I am down here at layer 2 all fat, dumb and… fat.
    Now most folks have pushed layer two security off to the side as a internal LAN based attack and look to features like Dynamic ARP Inspection, IP Source Guard, Root Guard, etc to render these attacks as useless as meat thermometer at a vegan dinner. But with the massive spread of MPLS, Ethernet is being pushed to levels it was never really designed to be at. Layer 2 attacks are now as cool as the Fonz leaning against a 57 Chevy.
    L2 network under penetration testing with Yersinia

    For example, I run a peer based security research lab here in Wisconsin. Me and about five other security folks around the world run sensors and try to hack into each others networks for practice, out right humiliation and of course beer bounties. Sitting in Milwaukee Wisconsin working on a Newcastle and a slow burning Rocky Patal 1990 Vintage after the family went to bed, I started working on hacking a peer of mines network. Knowing we both had MPLS trunks at the PE, I guessed they may be passing PDU’s in what is know as full transparency mode. I started up a simple ARP spoof and sure enough I was the default gateway for my friends traffic in Ottawa. Man that is really something to run these LAN type of attacks on the wide side.
    For these types of attacks, it is really hard to beat to the tool Yersinia. http://www.yersinia.net/ if you are running the BackTrack ISO, Yersinia is already compiled and ready to go, so skip on down a few steps, if not, let’s just make this easy and say you are using Ubuntu. To install Yersinia, just open up a terminal and type:
    apt-get install yersinia
    Using Yersinia is a simple as ******* on a airplane and blaming it on someone else. Yersinia is wrote in C and is multithreaded so more then one person can use it and more then one attack can be launched. Yersinia runs in one of three modes which are invoked at the command line:
    — yersinia -I is the Interactive mode. This is a ncurses graphical interface that will take you back to the editing autoexec files in the DOS days of old. This is the most popular mode for Yersinia. Once you are here, notice at the top of the screen, it tells you what protocol mode it is in. The default is STP. Press the «h» key for help. The most important keys to know at the start (besides h) are «g» to change protocol attack mode, «x» is the attack mode screen and «e» allows you to edit protocol fields. A mega cool plus is that the attack screen will tell you which attacks are DOS attacks so you don’t mess up and send the wrong one!
    — yersinia -D is the Daemon mode. This mode is really cool. It allows me to start yersinia on a Linux machine and access it with any other via Telnet. For example after the daemon is started, I attached on port 12000: telnet 192.168.1.100 12000 It is designed to emulate IOS to some extent, so you will see a log in screen, U: root P:root but like IOS the fun stuff is at enable mode so now type:enable the password here is tomac. At this mode, all options must be set by hand, so…

    Step One: is to config up a outbound interface: set interface eth0

    Step Two: run your attack (STP in this example) with the command: run stp 1
    This has to be done for each attack package, each time. I recommend liberal use of the ? command to figure out some of the config options and attack packages. It works at all levels like IOS. For example if you what to know the Spanning Tree Protocol attack packages type: run stp ?

    Step Three: Monitor your success or failure with the show command. Attacks will run until you stop them and that is done with the command: cancel all to turn them all off or you can just cancel a single attack with the attack name.
    — yersinia -G is the Final mode to run Yersinia in is the GTK graphical mode. While this is a nice looking point/click style of interface, it is a bit buggy and not used that much.
    Yersinia really offers up a nice attack package for layer two pen testers. Protocols like CDP,VTP,HSRP,DTP,DHCP,STP,802.1Q and X are all fair game. Yersinia has to be ran at root level and to go into interactive mode (yersinia -I) you have to be at full screen on the terminal.
    A couple of things I do not use Yersinia for:

    — DHCP attacks. I think Goobler is better and offers more options
    — VTP attacks on adding/removing VLANs do not seem to work
    Tools like Yersinia never really go out of style. Misconfigs and fully transparent WAN PDU passing will always keep the dust knocked off of your layer 2 skills. Put good ole Yersinia to the test. It is easy to use and works VERY well!