-->

ABOUT US

Our development agency is committed to providing you the best service.

OUR TEAM

The awesome people behind our brand ... and their life motto.

  • Kumar Atul Jaiswal

    Ethical Hacker

    Hacking is a Speed of Innovation And Technology with Romance.

  • Kumar Atul Jaiswal

    CEO Of Hacking Truth

    Loopholes are every major Security,Just need to Understand it well.

  • Kumar Atul Jaiswal

    Web Developer

    Techonology is the best way to Change Everything, like Mindset Goal.

OUR SKILLS

We pride ourselves with strong, flexible and top notch skills.

Marketing

Development 90%
Design 80%
Marketing 70%

Websites

Development 90%
Design 80%
Marketing 70%

PR

Development 90%
Design 80%
Marketing 70%

ACHIEVEMENTS

We help our clients integrate, analyze, and use their data to improve their business.

150

GREAT PROJECTS

300

HAPPY CLIENTS

650

COFFEES DRUNK

1568

FACEBOOK LIKES

STRATEGY & CREATIVITY

Phasellus iaculis dolor nec urna nullam. Vivamus mattis blandit porttitor nullam.

PORTFOLIO

We pride ourselves on bringing a fresh perspective and effective marketing to each project.

  • TryHackMe Walking An Application Walkthrough

     

    TryHackMe Walking An Application Walkthrough



    Walking An Application


    In this room you will learn how to manually review a web application for security issues using only the in-built tools in your browser. More often than not, automated security tools and scripts will miss many potential vulnerabilities and useful information.



    Here is a short breakdown of the in-built browser tools you will use throughout this room:


    View Source
    - Use your browser to view the human-readable source code of a website.
    Inspector - Learn how to inspect page elements and make changes to view usually blocked content.
    Debugger - Inspect and control the flow of a page's JavaScript
    Network - See all the network requests a page makes.

     

     

    TryHackMe Walking An Application Walkthrough

     



    Exploring The Website


    As a penetration tester, your role when reviewing a website or web application is to discover features that could potentially be vulnerable and attempt to exploit them to assess whether or not they are. These features are usually parts of the website that require some interactivity with the user.

    Finding interactive portions of the website can be as easy as spotting a login form to manually reviewing the website's JavaScript. An excellent place to start is just with your browser exploring the website and noting down the individual pages/areas/features with a summary for each one.


    An example site review for the Acme IT Support website would look something like this:

     

     

    Feature URL Summary
    Home Page / This page contains a summary of what Acme IT Support does with a company photo of their staff.
    Latest News /news This page contains a list of recently published news articles by the company, and each news article has a link with an id number, i.e. /news/article?id=1
    News Article /news/article?id=1 Displays the individual news article. Some articles seem to be blocked and reserved for premium customers only.
    Contat Page /contact This page contains a form for customers to contact the company. It contains name, email and message input fields and a send button.
    Customers Login /customers/login This page contains a login form with username and password fields.
    Customer Signup /customers/signup This page contains a user-signup form that consists of a username, email, password and password confirmation input fields.
    Customer Reset Password /customers/reset Password reset form with an email address input field.
    Customer Dashboard /customers This page contains a list of the user's tickets submitted to the IT support company and a "Create Ticket" button.
    Create Ticket /customers/ticket/new This page contains a form with a textbox for entering the IT issue and a file upload option to create an IT support ticket.
    Customer Account /customers/account This page allows the user to edit their username, email and password.
    Customer Logout /customers/logout This link logs the user out of the customer area.

     

     


    Viewing The Page Source



    The page source is the human-readable code returned to our browser/client from the web server each time we make a request.


    The returned code is made up of HTML ( HyperText Markup Language), CSS ( Cascading Style Sheets ) and JavaScript, and it's what tells our browser what content to display, how to show it and adds an element of interactivity with JavaScript.


    For our purposes, viewing the page source can help us discover more information about the web application.


    How do I view the Page Source?


    While viewing a website, you can right-click on the page, and you'll see an option on the menu that says View Page Source.
    Most browsers support putting view-source: in front of the URL for example, view-source:https://www.google.com/
    In your browser menu, you'll find an option to view the page source. This option can sometimes be in submenus such as developer tools or more tools.



    Let's view some Page Source!


    Try viewing the page source of the home page of the Acme IT Support website. Unfortunately, explaining everything you can see here is well out of the scope of this room, and you'll need to look into website design/development courses to understand it fully. What we can do, is pick out bits of information that are of importance to us.

     

     

    At the top of the page, you'll notice some code starting with <!-- and ending with --> these are comments. Comments are messages left by the website developer, usually to explain something in the code to other programmers or even notes/reminders for themselves. These comments don't get displayed on the actual webpage. This comment describes how the homepage is temporary while a new one is in development. View the webpage in the comment to get your first flag.


    Links to different pages in HTML are written in anchor tags ( these are HTML elements that start with <a ), and the link that you'll be directed to is stored in the href attribute.


    For example, you'll see the contact page link on line 31:

     

     


    TryHackMe Walking An Application Walkthrough

     

     If you view further down the page source, there is a hidden link to a page starting with "secr", view this link to get another flag. You obviously wouldn't get a flag in a real-world situation, but you may discover some private area used by the business for storing company/staff/customer information.


    External files such as CSS, JavaScript and Images can be included using the HTML code. In this example, you'll notice that these files are all stored in the same directory. If you view this directory in your web browser, there is a configuration error. What should be displayed is either a blank page or a 403 Forbidden page with an error stating you don't have access to the directory. Instead, the directory listing feature has been enabled, which in fact, lists every file in the directory. Sometimes this isn't an issue, and all the files in the directory are safe to be viewed by the public, but in some instances, backup files, source code or other confidential information could be stored here. In this instance, we get a flag in the flag.txt file.


    Many websites these days aren't made from scratch and use what's called a framework. A framework is a collection of premade code that easily allows a developer to include common features that a website would require, such as blogs, user management, form processing, and much more, saving the developers hours or days of development.


    Viewing the page source can often give us clues into whether a framework is in use and, if so, which framework and even what version. Knowing the framework and version can be a powerful find as there may be public vulnerabilities in the framework, and the website might not be using the most up to date version. At the bottom of the page, you'll find a comment about the framework and version in use and a link to the framework's website. Viewing the framework's website, you'll see that our website is, in fact, out of date. Read the update notice and use the information that you find to discover another flag.


     


    1) What is the flag from the HTML comment?

    HINT- Make sure you go to the link mentioned in the comment

     

    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough




    Ans- THM{HTML_COMMENTS_ARE_DANGEROUS}

     

    2) What is the flag from the secret link?

    HINT- For example, you'll see the contact page link on line 31: 



    TryHackMe Walking An Application Walkthrough



    TryHackMe Walking An Application Walkthrough




    Ans- THM{NOT_A_SECRET_ANYMORE}
     



    3) What is the directory listing flag?



    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough

     


    Ans- THM{INVALID_DIRECTORY_PERMISSIONS}

     


    4) What is the framework flag?


    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough

     

    Ans- THM{KEEP_YOUR_SOFTWARE_UPDATED}

     

     

    Developer Tools - Inspector


    Developer Tools

    Every modern browser includes developer tools; this is a tool kit used to aid web developers in debugging web applications and gives you a peek under the hood of a website to see what is going on. As a pentester, we can leverage these tools to provide us with a much better understanding of the web application. We're specifically focusing on three features of the developer tool kit, Inspector, Debugger and Network.



    Opening Developer Tools


    The way to access developer tools is different for every browser. If you're not sure how to access it, click the "View Site" button on the top right of this task to get instructions to how to access the tools for your browser.




    Inspector


    The page source doesn't always represent what's shown on a webpage; this is because CSS, JavaScript and user interaction can change the content and style of the page, which means we need a way to view what's been displayed in the browser window at this exact time. Element inspector assists us with this by providing us with a live representation of what is currently on the website.


    As well as viewing this live view, we can also edit and interact with the page elements, which is helpful for web developers to debug issues.

    On the Acme IT Support website, click into the news section, where you'll see three news articles.


    The first two articles are readable, but the third has been blocked with a floating notice above the content stating you have to be a premium customer to view the article. These floating boxes blocking the page contents are often referred to as paywalls as they put up a metaphorical wall in front of the content you wish to see until you pay.



     

    TryHackMe Walking An Application Walkthrough

     

    Right-clicking on the premium notice ( paywall ), you should be able to select the Inspect option from the menu, which opens the developer tools either on the bottom or right-hand side depending on your browser or preferences. You'll now see the elements/HTML that make up the website ( similar to the screenshots below ).

     

    TryHackMe Walking An Application Walkthrough

     

    Locate the DIV element with the class premium-customer-blocker and click on it. You'll see all the CSS styles in the styles box that apply to this element, such as margin-top: 60px and text-align: center. The style we're interested in is the display: block. If you click on the word block, you can type a value of your own choice. Try typing none, and this will make the box disappear, revealing the content underneath it and a flag. If the element didn't have a display field, you could click below the last style and add in your own. Have a play with the element inspector, and you'll see you can change any of the information on the website, including the content. Remember this is only edited on your browser window, and when you press refresh, everything will be back to normal.

     




    1) What is the flag behind the paywall?

    HINT- https://assets.tryhackme.com/additional/walkinganapplication/updating-html-css.gif


    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough




    TryHackMe Walking An Application Walkthrough


     

    TryHackMe Walking An Application Walkthrough

     

     

    Ans- THM{NOT_SO_HIDDEN}

     

     


    Developer Tools - Debugger


    This panel in the developer tools is intended for debugging JavaScript, and again is an excellent feature for web developers wanting to work out why something might not be working. But as penetration testers, it gives us the option of digging deep into the JavaScript code. In Firefox and Safari, this feature is called Debugger, but in Google Chrome, it's called Sources.


    On the Acme IT Support website, click on the contact page, each time the page is loaded, you might notice a rapid flash of red on the screen. We're going to use the Debugger to work out what this red flash is and if it contains anything interesting. Debugging a red dot wouldn't be something you'd do in the real world as a penetration tester, but it does allow us to use this feature and get used to the Debugger.


    In both browsers, on the left-hand side, you see a list of all the resources the current webpage is using. If you click into the assets folder, you'll see a file named flash.min.js. Clicking on this file displays the contents of the JavaScript file.


    Many times when viewing javascript files, you'll notice that everything is on one line, which is because it has been minimised, which means all formatting ( tabs, spacing and newlines ) have been removed to make the file smaller. This file is no exception to this, and it has also been obfusticated, which makes it purposely difficult to read, so it can't be copied as easily by other developers.


    We can return some of the formattings by using the "Pretty Print" option, which looks like two braces { } to make it a little more readable, although due to the obfustication, it's still difficult to comprehend what is going on with the file. If you scroll to the bottom of the flash.min.js file, you'll see the line: 

    flash['remove'](); 

     

    This little bit of JavaScript is what is removing the red popup from the page. We can utilise another feature of debugger called breakpoints. These are points in the code that we can force the browser to stop processing the JavaScript and pause the current execution.


    If you click the line number that contains the above code, you'll notice it turns blue; you've now inserted a breakpoint on this line. Now try refreshing the page, and you'll notice the red box stays on the page instead of disappearing, and it contains a flag.
    Answer the questions below



    1) What is the flag in the red box?

    HINT- The debugger tools might work differently on FireFox/Chrome. Follow the steps in the task to find the JavaScript flash.min.js file, prettifying it, finding the line with "flash[remove]" and adding a JavaScript break point to stop the red message disappearing when the page loads.


    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough



    Ans- THM{CATCH_ME_IF_YOU_CAN}

     

     


    Developer Tools - Network


    The network tab on the developer tools can be used to keep track of every external request a webpage makes. If you click on the Network tab and then refresh the page, you'll see all the files the page is requesting.


    Try doing this on the contact page; you can press the trash can icon to delete the list if it gets a bit overpopulated.


    With the network tab open, try filling in the contact form and pressing the Send Message button. You'll notice an event in the network tab, and this is the form being submitted in the background using a method called AJAX. AJAX is a method for sending and receiving network data in a web application background without interfering by changing the current web page.



    TryHackMe Walking An Application Walkthrough




    Examine the new entry on the network tab that the contact form created and view the page the data was sent to in order to reveal a flag.

     

    1) What is the flag shown on the contact-msg network request?

    HINT- When you find the contact-msg request, make sure you click on it to reveal the response of the request (there might be a response tab shown when you click it). After filling this form click on refresh button and see the contact-msg and double on click it.


     

    TryHackMe Walking An Application Walkthrough


    TryHackMe Walking An Application Walkthrough

     



    Ans- THM{GOT_AJAX_FLAG}
     

     

     


    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal



     

  • Three Things To Know About Principles Of Security

     

     

    https://www.hackingtruth.in/



    Introduction

     

    Learn the principles of information security that secures data and protects systems from abuse

    The following room is going to outline some of the fundamental principles of information security. The frameworks used to protect data and systems to the elements of what exactly makes data secure.

    The measures, frameworks and protocols discussed throughout this room all play a small part in "Defence in Depth."

    Defence in Depth is the use of multiple varied layers of security to an organisation's systems and data in the hopes that multiple layers will provide redundancy in an organisation's security perimeter.





    The CIA Triad


    The CIA triad is an information security model that is used in consideration throughout creating a security policy. This model has an extensive background, ranging from being used in 1998.


    This history is because the security of information (information security) does not start and/or end with cybersecurity, but instead, applies to scenarios like filing, record storage, etc.


    Consisting of three sections: Confidentiality, Integrity and Availability (CIA), this model has quickly become an industry standard today. This model should help determine the value of data that it applies to, and in turn, the attention it needs from the business.





    https://www.hackingtruth.in/


     



    The CIA triad is unlike a traditional model where you have individual sections; instead, it is a continuous cycle. Whilst the three elements to the CIA triad can arguably overlap, if even just one element is not met, then the other two are rendered useless (similar to the fire triangle). If a security policy does not answer these three sections, it is seldom an effective security policy.


    Whilst the three elements to the CIA triad are arguably self-explanatory, let's explore these and contextualise them into cybersecurity.

     

     

    https://www.hackingtruth.in/



    Confidentiality


    This element is the protection of data from unauthorized access and misuse. Organisations will always have some form of sensitive data stored on their systems. To provide confidentiality is to protect this data from parties that it is not intended for.


    There are many real-world examples for this, for example, employee records and accounting documents will be considered sensitive. Confidentiality will be provided in the sense that only HR administrators will access employee records, where vetting and tight access controls are in place. Accounting records are less valuable (and therefore less sensitive), so not as stringent access controls would be in place for these documents. Or, for example, governments using a sensitivity classification rating system (top-secret, classified, unclassified)

     

     

    https://www.hackingtruth.in/




    Integrity


    The CIA triad element of integrity is the condition where information is kept accurate and consistent unless authorized changes are made. It is possible for the information to change because of careless access and use, errors in the information system, or unauthorized access and use. In the CIA triad, integrity is maintained when the information remains unchanged during storage, transmission, and usage not involving modification to the information. Steps must be taken to ensure data cannot be altered by unauthorised people (for example, in a breach of confidentiality).


    Many defences to ensure integrity can be put in place. Access control and rigorous authentication can help prevent authorized users from making unauthorized changes. Hash verifications and digital signatures can help ensure that transactions are authentic and that files have not been modified or corrupted.

     

    https://www.hackingtruth.in/

     

    Availability


    In order for data to be useful, it must be available and accessible by the user.


    The main concern in the CIA triad is that the information should be available when authorised users need to access it.


    Availability is very often a key benchmark for an organisation. For example, having 99.99% uptime on their websites or systems (this is laid out in Service Level Agreements). When a system is unavailable, it often results in damage to an organisations reputation and loss of finances. Availability is achieved through a combination of many elements, including:
     

    • Having reliable and well-tested hardware for their information technology servers (i.e. reputable servers)
       
    • Having redundant technology and services in the case of failure of the primary
       
    • Implementing well-versed security protocols to protect technology and services from attack




    1) What element of the CIA triad ensures that data cannot be altered by unauthorised people?

    Ans- Integrity



    2) What element of the CIA triad ensures that data is available?

    Ans- Availavility



    3) What element of the CIA triad ensures that data is only accessed by authorised people?

    Ans- Confidentiality




    Principles of Privileges


    It is vital to administrate and correctly define the various levels of access to an information technology system individuals require.


    The levels of access given to individuals are determined on two primary factors:


    • The individual's role/function within the organisation
    • The sensitivity of the information being stored on the system

       


     

    https://www.hackingtruth.in/

     

     

    Two key concepts are used to assign and manage the access rights of individuals, two key concepts are used: Privileged Identity Management (PIM) and Privileged Access Management (or PAM for short).



    Initially, these two concepts can seem to overlap; however, they are different from one another. PIM is used to translate a user's role within an organisation into an access role on a system. Whereas PAM is the management of the privileges a system's access role has, amongst other things.



    What is essential when discussing privilege and access controls is the principle of least privilege. Simply, users should be given the minimum amount of privileges, and only those that are absolutely necessary for them to perform their duties. Other people should be able to trust what people write to.


    As we previously mentioned, PAM incorporates more than assigning access. It also encompasses enforcing security policies such as password management, auditing policies and reducing the attack surface a system faces.





    1) What does the acronym "PIM" stand for?

    Ans- Privileged identity Management



    2) What does the acronym "PAM" stand for?

    Ans- Privileged Access Management




    3) If you wanted to manage the privileges a system access role had, what methodology would you use?


    Ans- PAM




    4) If you wanted to create a system role that is based on a users role/responsibilities with an organisation, what methodology is this?

    Ans- PIM





    Security Models Continued


    Before discussing security models further, let's recall the three elements of the CIA triad: Confidentiality, Integrity and Availability. We've previously outlined what these elements are and their importance. However, there is a formal way of achieving this.


    According to a security model, any system or piece of technology storing information is called an information system, which is how we will reference systems and devices in this task.


    Let's explore some popular and effective security models used to achieve the three elements of the CIA triad.





    The Bell-La Padula Model


    The Bell-La Padula Model is used to achieve confidentiality. This model has a few assumptions, such as an organisation's hierarchical structure it is used in, where everyone's responsibilities/roles are well-defined.


    The model works by granting access to pieces of data (called objects) on a strictly need to know basis. This model uses the rule "no write down, no read up".





     

    Advantages Disadvantages
    Policies in this model can be replicated to real-life organisations hierarchies (and vice versa) Even though a user may not have access to an object, they will know about its existence -- so it's not confidential in that aspect.
    Simple to implement and understand, and has been proven to be successful. The model relies on a large amount of trust within the organisation.

     


    https://www.hackingtruth.in/

    The Bell LaPadula Model is popular within organisations such as governmental and military. This is because members of the organisations are presumed to have already gone through a process called vetting. Vetting is a screening process where applicant's backgrounds are examined to establish the risk they pose to the organisation. Therefore, applicants who are successfully vetted are assumed to be trustworthy - which is where this model fits in.





    Biba Model


    The Biba model is arguably the equivalent of the Bell-La Padula model but for the integrity of the CIA triad.


    This model applies the rule to objects (data) and subjects (users) that can be summarised as "no write up, no read down". This rule means that subjects can create or write content to objects at or below their level but can only read the contents of objects above the subject's level.


    Let's compare some advantages and disadvantages of this model in the table below:
       

       


     

    Advantages Disadvantages
    This model is simple to implement. There will be many levels of access and objects. Things can be easily overlooked when applying security controls.
    Resolves the limitations of the Bell-La Padula model by addressing both confidentiality and data integrity. Often results in delays within a business. For example, a doctor would not be able to read the notes made by a nurse in a hospital with this model.

     


    https://www.hackingtruth.in/


    The Biba model is used in organisations or situations where integrity is more important than confidentiality. For example, in software development, developers may only have access to the code that is necessary for their job. They may not need access to critic.
       
       



    1) What is the name of the model that uses the rule "can't read up, can read down"?

    Ans- The Bell-LaPadula Model



    2) What is the name of the model that uses the rule "can read up, can't read down"?


    Ans- The Biba Model




    3) If you were a military, what security model would you use?

    Ans- The Bell-LaPadula Model




    4) If you were a software developer, what security model would the company perhaps use?

    Ans- The Biba Model




    Threat Modelling & Incident Response


    Threat modelling is the process of reviewing, improving, and testing the security protocols in place in an organisation's information technology infrastructure and services.


    A critical stage of the threat modelling process is identifying likely threats that an application or system may face, the vulnerabilities a system or application may be vulnerable to.





    The threat modelling process is very similar to a risk assessment made in workplaces for employees and customers. The principles all return to:


    • Preparation
    • Identification
    • Mitigations
    • Review






    It is, however, a complex process that needs constant review and discussion with a dedicated team. An effective threat model includes:


    • Threat intelligence
    • Asset identification
    • Mitigation capabilities
    • Risk assessment



     

     

    https://www.hackingtruth.in/

     

     

     

    To help with this, there are frameworks such as STRIDE (Spoofing, identity, Tampering with data, Repudiation threats, Information disclosure, Denial of Service and Elevation of privileges) and PASTA (Process for Attack Simulation and Threat Analysis) infosec never tasted so good!. Let's detail STRIDE below. STRIDE, authored by two Microsoft security researchers in 1999 is still very relevant today. STRIDE includes six main principles, which I have detailed in the table below:



     

    Principle Description
    Spoofing This principle requires you to authenticate requests and users accessing a system. Spoofing involves a malicious party falsely identifying itself as another. Access keys (such as API keys) or signatures via encryption helps remediate this threat.
    Tampering By providing anti-tampering measures to a system or application, you help provide integrity to the data. Data that is accessed must be kept integral and accurate. For example, shops use seals on food products.
    Repudiation This principle dictates the use of services such as logging of activity for a system or application to track.
    Information Disclosure Applications or services that handle information of multiple users need to be appropriately configured to only show information relevant to the owner is shown.
    Denial of Service Applications and services use up system resources, these two things should have measures in place so that abuse of the application/service won't result in bringing the whole system down.
    Elevation of Privilege This is the worst-case scenario for an application or service. It means that a user was able to escalate their authorization to that of a higher level i.e. an administrator. This scenario often leads to further exploitation or information disclosure.

     





    A breach of security is known as an incident. And despite all rigorous threat models and secure system designs, incidents do happen. Actions taken to resolve and remediate the threat are known as Incident Response (IR) and are a whole career path in cybersecurity.


    Incidents are classified using a rating of urgency and impact. Urgency will be determined by the type of attack faced, where the impact will be determined by the affected system and what impact that has on business operations.


    https://www.hackingtruth.in/



     

    An incident is responded to by a Computer Security Incident Response Team (CSIRT) which is prearranged group of employees with technical knowledge about the systems and/or current incident. To successfully solve an incident, these steps are often referred to as the six phases of Incident Response that takes place, listed in the table below:




     

    Action Description
    Preparation Do we have the resources and plans in place to deal with the security incident?
    Identification Has the threat and the threat actor been correctly identified in order for us to respond to?
    Containment Can the threat/security incident be contained to prevent other systems or users from being impacted?
    Eradication Remove the active threat.
    Recovery Perform a full review of the impacted systems to return to business as usual operations.
    Lessons Learned What can be learnt from the incident? I.e. if it was due to a phishing email, employees should be trained better to detect phishing emails.

     



    1) What model outlines "Spoofing"?

    Ans- STRIDE



    2) What does the acronym "IR" stand for?

    Ans- Incident Response



    3) You are tasked with adding some measures to an application to improve the integrity of data, what STRIDE principle is this?

    Ans- Tampering



    4) An attacker has penetrated your organisation's security and stolen data. It is your task to return the organisation to business as usual. What incident response stage is this?

    Ans- Recovery





    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal



     

     

  • Penetration Testing Fundamentals

     

     

    Penetration Testing Fundamentals




    What is Penetration Testing?


     

    Learn the important ethics and methodologies behind every pentest.
     

    Before teaching you the technical hands-on aspects of ethical hacking, you'll need to understand more about what a penetration tester's job responsibilities are and what processes are followed in performing pentests (finding vulnerabilities in a clients application or system).


    The importance and relevancy of cybersecurity are ever-increasing and can be in every walk of life. News headlines fill our screens, reporting yet another hack or data leak. Penetration Testing Fundamentals


    Cybersecurity is relevant to all people in the modern world, including a strong password policy to protect your emails or to businesses and other organisations needing to protect both devices and data from damages.


    A Penetration test or pentest is an ethically-driven attempt to test and analyse the security defences to protect these assets and pieces of information. A penetration test involves using the same tools, techniques, and methodologies that someone with malicious intent would use and is similar to an audit.


    According to Security Magazine, a cybersecurity industry magazine, there are over 2,200 cyber attacks every day - 1 attack every 39 seconds.






    Penetration Testing Ethics

     
    The battle of legality and ethics in cybersecurity, let alone penetration testing is always controversial. Labels like "hacking" and "hacker" often hold negative connotations, especially in pop culture, thanks to a few bad apples. The idea of legally gaining access to a computer system is a challenging concept to grasp -- after all, what makes it legal exactly?

    Recall that a penetration test is an authorised audit of a computer system's security and defences as agreed by the owners of the systems. The legality of penetration is pretty clear-cut in this sense; anything that falls outside of this agreement is deemed unauthorised.

    Before a penetration test starts, a formal discussion occurs between the penetration tester and the system owner. Various tools, techniques, and systems to be tested are agreed on. This discussion forms the scope of the penetration testing agreement and will determine the course the penetration test takes.

    Companies that provide penetration testing services are held against legal frameworks and industry accreditation. For example, the National Cyber Security Centre (NCSC) has the CHECK accreditation scheme in the UK. This check means that only "[CHECK]  approved companies can conduct authorised penetration tests of public sector and CNI systems and networks." (NCSC).

    Ethics is the moral debate between right and wrong; where an action may be legal, it may go against an individual's belief system of right and wrong.

    Penetration testers will often be faced with potentially morally questionable decisions during a penetration test. For example, they are gaining access to a database and being presented with potentially sensitive data. Or they are, perhaps, performing a phishing attack on an employee to test an organisation's human security. If that action has been agreed upon during the initial stages, it is legal -- however ethically questionable.

    Hackers are sorted into three hats, where their ethics and motivations behind their actions determine what hat category they are placed into. Let's cover these three in the table below:

     

     

    Hat Category Description Example
    White Hat These hackers are considered the "good people". They remain within the law and use their skills to benefit others. For example, a penetration tester performing an authorised engagement on a company.
    Grey Hat These people use their skills to benefit others often; however, they do not respect/follow the law or ethical standards at all times. For example, someone taking down a scamming site.
    Black Hat These people are criminals and often seek to damage organisations or gain some form of financial benefit at the cost of others. For example, ransomware authors infect devices with malicious code and hold data for ransom.

     

     

     

    Rules of Engagement (ROE)


    The ROE is a document that is created at the initial stages of a penetration testing engagement. This document consists of three main sections (explained in the table below), which are ultimately responsible for deciding how the engagement is carried out. The SANS institute has a great example of this document which you can view online here.

     

     

     

    Section Description
    Permission This section of the document gives explicit permission for the engagement to be carried out. This permission is essential to legally protect individuals and organisations for the activities they carry out.
    Test Scopes This section of the document will annotate specific targets to which the engagement should apply. For example, the penetration test may only apply to certain servers or applications but not the entire network.
    Rules The rules section will define exactly the techniques that are permitted during the engagement. For example, the rules may specifically state that techniques such as phishing attacks are prohibited, but MITM (Man-in-the-Middle) attacks are okay.

     

     


    1) You are given permission to perform a security audit on an organisation; what type of hacker would you be?

    Ans- White Hat



    2) You attack an organisation and steal their data, what type of hacker would you be?

    Ans- Black Hat



    3) What document defines how a penetration testing engagement should be carried out?

    Ans- Rules of Engagement


     

     

    Penetration Testing Methodologies


    Penetration tests can have a wide variety of objectives and targets within scope. Because of this, no penetration test is the same, and there are no one-case fits all as to how a penetration tester should approach it.

    The steps a penetration tester takes during an engagement is known as the methodology. A practical methodology is a smart one, where the steps taken are relevant to the situation at hand. For example, having a methodology that you would use to test the security of a web application is not practical when you have to test the security of a network.


    Before discussing some different industry-standard methodologies, we should note that all of them have a general theme of the following stages:

     

     

     

    Stage Description
    Information Gathering Information Gathering This stage involves collecting as much publically accessible information about a target/organisation as possible, for example, OSINT and research. Note: This does not involve scanning any systems.
    Enumeration/Scanning This stage involves discovering applications and services running on the systems. For example, finding a web server that may be potentially vulnerable.
    Exploitation This stage involves leveraging vulnerabilities discovered on a system or application. This stage can involve the use of public exploits or exploiting application logic.
    Privilege Escalation Once you have successfully exploited a system or application (known as a foothold), this stage is the attempt to expand your access to a system. You can escalate horizontally and vertically, where horizontally is accessing another account of the same permission group (i.e. another user), whereas vertically is that of another permission group (i.e. an administrator).
    Post Exploitation This stage involves a few sub-stages: 1. What other hosts can be targeted (pivoting) 2. What additional information can we gather from the host now that we are a privileged user 3. Covering your tracks 4. Reporting

     

     

     


    OSSTMM


    The Open Source Security Testing Methodology Manual provides a detailed framework of testing strategies for systems, software, applications, communications and the human aspect of cybersecurity.


    The methodology focuses primarily on how these systems, applications communicate, so it includes a methodology for:

    • Telecommunications (phones, VoIP, etc.)
    • Wired Networks
    • Wireless communications

        

     

    Penetration Testing Fundamentals

     

     

     

    Advantages Disadvantages
    Covers various testing strategies in-depth. The framework is difficult to understand, very detailed, and tends to use unique definitions.
    Includes testing strategies for specific targets (I.e. telecommunications and networking) Intentionally left blank.
    The framework is flexible depending upon the organisation's needs. Intentionally left blank.
    The framework is meant to set a standard for systems and applications, meaning that a universal methodology can be used in a penetration testing scenario. Intentionally left blank.

     

     

     

    OWASP


    The "Open Web Application Security Project" framework is a community-driven and frequently updated framework used solely to test the security of web applications and services.


    The foundation regularly writes reports stating the top ten security vulnerabilities a web application may have, the testing approach, and remediation.
       
        



    Penetration Testing Fundamentals


     

    Advantages Disadvantages
    Easy to pick up and understand. It may not be clear what type of vulnerability a web application has (they can often overlap).
    Actively maintained and is frequently updated. OWASP does not make suggestions to any specific software development life cycles.
    It covers all stages of an engagement: from testing to reporting and remediation. The framework doesn't hold any accreditation such as CHECK.
    Specialises in web applications and services. Intentionally left blank.

     


    NIST Cybersecurity Framework 1.1


    The NIST Cybersecurity Framework is a popular framework used to improve an organisations cybersecurity standards and manage the risk of cyber threats. This framework is a bit of an honourable mention because of its popularity and detail.


    The framework provides guidelines on security controls & benchmarks for success for organisations from critical infrastructure (power plants, etc.) all through to commercial.  There is a limited section on a standard guideline for the methodology a penetration tester should take.


     

     

    Penetration Testing Fundamentals

     

     

     

     

     

    Advantages Disadvantages
    The NIST Framework is estimated to be used by 50% of American organisations by 2020. NIST has many iterations of frameworks, so it may be difficult to decide which one applies to your organisation.
    The framework is extremely detailed in setting standards to help organisations mitigate the threat posed by cyber threats. The NIST framework has weak auditing policies, making it difficult to determine how a breach occurred.
    The framework is very frequently updated. The framework does not consider cloud computing, which is quickly becoming increasingly popular for organisations.
    NIST provides accreditation for organisations that use this framework. Intentionally left blank.
    The NIST framework is designed to be implemented alongside other frameworks. Intentionally left blank.

     

     

    NCSC CAF


    The Cyber Assessment Framework (CAF) is an extensive framework of fourteen principles used to assess the risk of various cyber threats and an organisation's defences against these.


    The framework applies to organisations considered to perform "vitally important services and activities" such as critical infrastructure, banking, and the likes. The framework mainly focuses on and assesses the following topics:

    •     Data security
    •     System security
    •     Identity and access control
    •     Resiliency
    •     Monitoring
    •     Response and recovery planning


     

     

     

    Advantages Disadvantages
    This framework is backed by a government cybersecurity agency. The framework is still new in the industry, meaning that organisations haven't had much time to make the necessary changes to be suitable for it.
    This framework provides accreditation. The framework is based on principles and ideas and isn't as direct as having rules like some other frameworks.
    This framework covers fourteen principles which range from security to response. Intentionally left blank.

     

     

     

    1) What stage of penetration testing involves using publicly available information?

    Ans- Information Gathering




    2) If you wanted to use a framework for pentesting telecommunications, what framework would you use? Note: We're looking for the acronym here and not the full name.

    Ans- OSSTMM



    3) What framework focuses on the testing of web applications?

    Ans- OWASP



     

     

    Black box, White box, Grey box Penetration Testing

    

    There are three primary scopes when testing an application or service. Your understanding of your target will determine the level of testing that you perform in your penetration testing engagement. In this task, we'll cover these three different scopes of testing.




    Penetration Testing Fundamentals




    Black-Box Testing


    This testing process is a high-level process where the tester is not given any information about the inner workings of the application or service.


    The tester acts as a regular user testing the functionality and interaction of the application or piece of software. This testing can involve interacting with the interface, i.e. buttons, and testing to see whether the intended result is returned. No knowledge of programming or understanding of the programme is necessary for this type of testing.


    Black-Box testing significantly increases the amount of time spent during the information gathering and enumeration phase to understand the attack surface of the target.





    Grey-Box Testing


    This testing process is the most popular for things such as penetration testing. It is a combination of both black-box and white-box testing processes. The tester will have some limited knowledge of the internal components of the application or piece of software. Still, it will be interacting with the application as if it were a black-box scenario and then using their knowledge of the application to try and resolve issues as they find them.


    With Grey-Box testing, the limited knowledge given saves time, and is often chosen for extremely well-hardened attack surfaces.






    White-Box Testing


    This testing process is a low-level process usually done by a software developer who knows programming and application logic. The tester will be testing the internal components of the application or piece of software and, for example, ensuring that specific functions work correctly and within a reasonable amount of time.


    The tester will have full knowledge of the application and its expected behaviour and is much more time consuming than black-box testing. The full knowledge in a White-Box testing scenario provides a testing approach that guarantees the entire attack surface can be validated.

       
        


    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal



  • WHAT WE DO

    We've been developing corporate tailored services for clients for 30 years.

    CONTACT US

    For enquiries you can contact us in several different ways. Contact details are below.

    Hacking Truth.in

    • Street :Road Street 00
    • Person :Person
    • Phone :+045 123 755 755
    • Country :POLAND
    • Email :contact@heaven.com

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.