Tag: coding

  • Google Previews Generative AI Service to Improve Code

    Google Previews Generative AI Service to Improve Code

    Google is previewing an instance of a generative artificial intelligence (AI) service that surfaces code recommendations to make it possible to build high-quality applications faster.

    Specifically, Duet AI for Google Cloud surfaces code recommendations in real-time, generates full functions and code blocks and suggests fixes for vulnerabilities and errors in the code that it discovers. It also promises to enable DevOps teams to create custom large language models (LLM) based on their own code. In fact, GitLab and Tabnine are, respectively, already integrating LLMs running on Google Cloud with their continuous integration/continuous delivery (CI/CD) platform and testing tools.

    Chen Goldberg, vice president of engineering for Google, told attendees at the Google I/O 2023 conference that Duet AI for Google Cloud will fundamentally change how developers will be able to build applications, regardless of their skill level.

    Duet AI for Google Cloud was trained using data collected from Google Cloud using sample code and documentation to fine-tune behaviors and patterns.

    Duet AI for Google Cloud is available under an AI Trusted Tester Program and provides developers with many of the same capabilities that can be found in the GitHub Copilot tool that is based on the LLMs created by OpenAI.

    In addition to making Duet AI for Google Cloud accessible via both its tools and managed services, Google said it also plans to integrate the service with multiple integrated development environments (IDEs).

    It’s still early days as far as the use of generative AI within DevOps workflows is concerned, but it’s clear that the amount of code being created by developers is about to increase exponentially. Hopefully, AI technologies will also one day help software engineers find ways to manage the massive volume of code moving across their DevOps pipelines.

    Generative AI platforms will fundamentally change the way humans interact with machines. Instead of requiring a developer to create a level of abstraction to communicate with a machine, it’s now possible for machines to understand the language humans use to communicate with each other. Using a natural language interface, developers will soon be asking generative AI platforms to not only make suggestions but also debug applications and, eventually, write the code used to create an application.

    At this point, like it or not, the generative AI genie is out of the proverbial bottle. Just about every job function imaginable will be impacted to varying degrees. In the case of DevOps teams, the ultimate impact should involve less drudgery and toil as many of the manual tasks that conspire to make managing DevOps workflows tedious are eliminated.

    In the meantime, DevOps teams should spend some time identifying which tasks will become automated by generative AI and other technologies that employ machine and deep learning algorithms. It doesn’t make much sense to onboard new members to a DevOps team only to discover that the tasks assigned to that individual are about to be automated. Hopefully, when all these AI technologies are finally implemented, the entire DevOps experience will be better than ever.

  • 5 Unusual Ways to Improve Code Quality

    5 Unusual Ways to Improve Code Quality

    Code quality refers to how well-written and maintainable software code is. It encompasses factors such as readability, efficiency, scalability, reliability, maintainability and security. High code quality ensures that software is easy to understand, modify and extend, has fewer bugs and is less likely to break down. It also reduces development time and costs and improves the overall user experience. One common approach to determine code quality is to use automated tools that analyze the code based on predefined quality standards and generate a report with a numerical score.

    Why is Code Quality Important?

    Generating high-quality code ultimately enhances the end user’s experience. Focusing on creating quality code can also help consumers understand the safety and reliability of the software or program they’re using.

    Low-quality code can affect user experience and satisfaction, making it critical to write high-quality code that functions properly. When developers write low-quality code, it can create vulnerabilities that expose the software to cybersecurity threats, resulting in bugs and functionality issues and impacting the software’s reliability. 

    Here are some additional reasons high-quality code is important: 

    • Enhances code readability: Readability is important because it leads to higher rates of understanding among other developers. A code that’s easy to read is also easy to improve.
    • Improves the level of program sustainability: Program sustainability measures how long a code can survive with minimal changes. High-quality code can last for years, making it more sustainable.
    • Increases transferability: Transferring code from one platform to another is a complicated process. It’s much easier for developers to transfer high-quality code, as they only need to make minimal changes.
    • Lowers costs related to program or software: When software lasts for a long time with few errors, it can save a company money. Instead of paying for additional time to rewrite low-quality code, the company can rely on the original, high-quality source code.

    5 Unusual Ways to Improve Code Quality

    Here are a few ways you may not have thought of which can help your development team improve code quality and end-user satisfaction.

    Bug Bounty

    A bug bounty program is a type of crowdsourced security testing in which an organization offers rewards to independent security researchers or ethical hackers for identifying and reporting vulnerabilities in their software or systems. By offering rewards for vulnerabilities, organizations can incentivize security researchers to find and report security issues before they can be exploited by attackers.

    Bug bounty programs can improve code quality in several ways:

    • Incentivize security testing: Bug bounty programs incentivize security researchers to test an organization’s software or systems for vulnerabilities. This can increase the amount and quality of security testing that is done, leading to a more secure product.
    • Encourage responsible disclosure: Bug bounty programs encourage security researchers to report vulnerabilities directly to the organization rather than publishing them publicly or selling them on the black market. This allows organizations to fix vulnerabilities before they are exploited by attackers.
    • Provide feedback on code quality: Security researchers who participate in bug bounty programs can provide feedback on code quality which can help organizations to improve their development practices and write more secure code in the future.

    Auto-Generated Documentation

    Auto-generated documentation is a type of documentation that is generated from code comments and metadata as part of an automated development pipeline. It is typically generated using tools such as Javadoc, Doxygen, or Sphinx, which parse code comments and metadata to generate HTML, PDF, or other formats of documentation.

    Auto-generated documentation can improve code quality in several ways:

    • Improved code readability: Auto-generated documentation can provide clear and concise descriptions of code functionality, making it easier for developers to understand the code and its purpose.
    • Better code organization: Auto-generated documentation can help developers organize their code by providing a clear hierarchy of classes, methods, and functions, making it easier to navigate and maintain the codebase.
    • Consistency: Auto-generated documentation can ensure that documentation is consistent across the codebase, reducing the risk of errors and misunderstandings.
    • Quality assurance: Auto-generated documentation can be used as a quality assurance tool, helping developers to identify errors and omissions in their code comments and metadata.

    Coding Conventions

    Coding conventions are a set of guidelines and standards that outline how code should be written and formatted to promote consistency and readability. They typically cover aspects such as naming conventions, code structure, formatting, and documentation. 

    By following coding conventions, developers can improve code quality and make their code easier to read and understand, which makes it easier to maintain and modify. They also help ensure that code is consistent across a project or organization, which can make collaboration and integration of different code segments easier.

    Typical elements that coding conventions dictate include:

    • Naming conventions for variables, functions, and classes.
    • Indentation and formatting of code blocks.
    • Use of whitespace and comments to improve readability.
    • Guidelines for handling exceptions, errors, and input/output.

    Quality Gates

    Quality gates are a set of checkpoints or criteria that software must meet before it can progress to the next stage of development. They are typically used in software development processes to ensure that the software is of a certain quality and is ready for release.

    Quality gates can be automated or manual, and they are typically implemented at key points in the development process, such as after unit testing, integration testing, or acceptance testing. They can include metrics such as code coverage, code quality, functionality, performance and security.

    By enforcing quality gates, development teams can catch and address issues earlier in the development process, which can reduce rework, save time and ensure that the final software product meets the required quality standards.

    Smart Code Snippets

    Smart code snippets, also known as intelligent code snippets or live templates, are pre-written code fragments that can be inserted into a code file with placeholders for variables or user-defined inputs. They are designed to help developers write code more efficiently and accurately by reducing the amount of repetitive or boilerplate code they need to write and by providing contextual awareness and intelligence.

    Regular code snippets are static pieces of code that can be inserted into a file as needed. They typically contain pre-written code blocks or templates that can be customized to fit the specific use case.

    In contrast, smart code snippets are dynamic and can adapt to the context of the code being written. For example, a smart code snippet might include placeholders for variables that need to be defined or automatically fill in common code constructs based on the context of the code. 

    Conclusion

    The five lesser-known ways to improve code quality discussed in this article offer a starting point for teams looking to take a fresh perspective on their development process. Improving code quality is critical for the success of any software development project. While there are many established methods and best practices for improving code quality, there are also some less conventional approaches that can be surprisingly effective. By adopting a creative and open-minded approach to software development, teams can identify new ways to improve code quality and build more reliable, efficient and secure software.

    Image Source 

  • Implementing Shift Left Security in the Cloud

    Implementing Shift Left Security in the Cloud

    While ransomware has been the leading concern for enterprise security teams over the few past years, software vulnerabilities are nipping at its heels. The boom in cloud-based apps and services and increased digitization of work have been a boon for hackers, who are taking advantage of developers’ and DevOps teams’ attempts to work faster and smarter to keep up with demand. One estimate says that four out of 10 zero-day attacks carried out in the last decade happened in 2021 alone.

    Many things account for this increase. Developers are stretched and are reusing code, which allows for misconfigurations and vulnerabilities to reappear unexpectedly in different programs, and the use of multiple cloud services fragments security measures and reduces visibility into the code running many enterprise functions. This is why developers and security professionals alike are paying more attention to security throughout the software development life cycle (SDLC), particularly in the early stages.

    Shift Left Security Principles and Challenges

    The zero-day surge has led to an increased interest in shift left practices as a way to make security a priority in the development process. Shift left culture brings security into the equation much earlier in the software life cycle, before the software is deployed, rather than patch bugs after users report them. This preemptive approach helps head off vulnerabilities that can affect an application’s security posture unbeknown to its defenders.

    Shift left principles can also enhance security when developers build applications for cloud platforms—such as Amazon Web Services, Microsoft’s Azure or Google Cloud—where visibility into the proprietary code and security tools of the platform can be limited. In a shift left culture, DevOps embeds least privilege policies as part of the daily work on cloud workloads, to protect network infrastructure and avoid granting excess permissions on those workflows.

    For example, setting up role-based access control (RBAC) on Kubernetes containers enforces a least privilege model on those clusters and avoids excessive permissions that can lead to a breach, while removing admin credentials from continuous integration/continuous delivery (CI/CD) workstations shuts off hackers from using those pipelines as an attack vector.

    Shift left security is a great concept, but runs into hurdles in execution, mainly the internal conflict between development teams who want to move at the speed of business while security staff takes a more cautious approach. This leads to friction, with developers warning about access denials affecting their work and causing deployment delays, while the security analysts worry about data breaches caused by too many users with unchecked admin privileges.

    Working out this friction requires a mindset shift, where DevOps understands that security is part of the development process, and management can trust that developers have security in hand. This also requires tools and training to integrate shift left practices, such as platforms that can bridge the security needs of the CISO (by granting greater visibility into the network infrastructure code, for example) and the agility needs of the DevOps teams (by automating security guardrails and entitlements, for example). The ultimate goal is creating what is known as a DevSecOps model, bringing together development, security and operations into one agile, safe and efficient workflow.

    How to Adopt Shift Left Security on the Cloud

    Four best practices can help:

    ● Gain deep visibility: With enterprises often working in multiple cloud environments—and mixing public and private clouds into hybrid infrastructures—visibility into assets typically suffers, which makes getting a clear view of risk difficult. Being able to discover all identities, permissions, configurations and resources in the environment and all the access paths to specific resources can help build a contextual inventory of cloud assets to better manage them and carry out policy analysis.

    ● Prioritize risk: Risk management is a key practice of any security program, but the flood of alerts from multiple cloud providers and systems can overwhelm security operations centers, which are often short on talent and time. Automation tools can now search and prioritize risks across an entire cloud environment, from development to production, spotting problem combinations and alleviating the workload of sorting manually through alerts across multiple silos, freeing the staff to work on higher-priority mitigation and remediation tasks.

    ● Just-in-time access: Zero-trust architecture has become the standard to aspire for most security defenses, but it is often challenged by the difficulties of managing access privileges. Just-in-Time (JIT) access, granting limited-time revocable rights, is a useful tool for building a zero-trust security architecture and enforcing least privilege policies to maintain it. Technology tools that actively manage and monitor developer access to cloud environments, including a strong audit trail of privileged activity, give security a means to enforce JIT access and zero-trust in turn.

    ● Find and prevent vulnerabilities and misconfigurations: Infrastructure-as-code (IaC) has made software deployment in the cloud (much more agile and efficient with the use of virtual machines, containers, microservices, etc. However, security is often an afterthought both pre- and post-production when standing up cloud infrastructure. Organizations should scan code for security policy violations and other risks in order to mitigate flaws before they reach production and to detect and fix problems in production environments. With feedback and automated guardrails built into development workflows, DevOps and security teams can reduce security risks in their code.

    Like zero-trust, shift left is on its way to becoming a standard practice for cybersecurity assurance. But building a DevSecOps model takes more than good intentions. It requires practices, tools and training to execute that model, and a mindset of partnership across the enterprise and with outside cloud and security partners. Only a group effort will provide the cloud security assurance an agile business needs.

     

  • Top 10 US States for a Coding Career

    Top 10 US States for a Coding Career

    Coding jobs are in high demand and the Bureau of Labor Statistics projects that computer and information technology employment will grow 13% by 2030. Alongside the increasing demand, coding has emerged as a highly flexible career option with room for growth. 

    If you’re looking to build a lucrative career in coding, researchers at Scrapfly.com pulled together a list of the top 10 states for coders and what the average salary is in those states.

    Scrapfly.com, a web scraping API, calculated each state’s job openings per 100,000 people, as well as the median annual wage. Delaware came out on top with 759 coding jobs per 100,000 people, with a median wage of $108,440. Behind it is Vermont with 519 jobs per 100,000 people and a median wage of $99,210. 

    Surprisingly, the least populous state in the U.S., Wyoming, rounded out the top three with 488 jobs per 100,000 people. 

    “As you can see by the data, it’s a common misconception that you have to get a job in one of the more populous states in order to get the dream job as a software developer. Wyoming is a great example of a state that is small in population but is really pushing the boundaries in terms of creating jobs within the tech industry,” Scrapfly.com researchers said. 

    Despite having the fourth-highest annual salary, Alaska placed seventh on the list with 443 jobs per 100,000 people. Behind it, Massachusetts had the highest median wage at $128,160 per year. 

    Numbers seven through 10 on the list all bring in at least $100,000 per year, on average, with New Hampshire and Rhode Island providing 411 and 395 jobs per 100,000 people. 

    Furthermore, Montana, South Dakota and North Dakota come in at numbers four, five and six with their median wages varying between $80,000 and $78,000. In those states, between 458 and 475 jobs per 100,000 people were recorded. 

    “Whether you’re already established in the coding world or looking to kickstart your career journey, there are plenty of states that provide ample opportunity to flourish,” said Sparkfly.com’s research team. 

    Although many people don’t have a coding background, it is easier than ever to learn the skills necessary to get a job in coding. Indeed.com advised learning a programming language like JavaScript, Python or Swift and taking a coding class. It also touched on the importance of contributing to open source, building projects and expanding your portfolio. 

    “This research demonstrates that a career in tech and coding is more accessible than many believe. We can see this not only by the sheer number of job openings across the states but by the attractive average salaries too,” the researchers said.

  • Four Secure Coding Best Practices for Mobile Apps

    Four Secure Coding Best Practices for Mobile Apps

    Mobile apps have become the primary point of innovation for many companies, and skilled mobile developers are in high demand. The business asks developers to innovate fast using the latest smartphone features and capabilities to drive high download rates, wow their users, capture customers and grow their business. Dev teams facing constant pressure to move faster may push security to the back burner, focusing on required features and delivery dates the business demands. However, many dev teams have figured out how to innovate faster with security built in by ensuring that devs understand key security requirements and coding best practices. Working with hundreds of development teams on securing thousands of mobile apps, we found four common areas of security failure that can be addressed easily.

    Use SSL via HTTPS

    Mobile app devs may instinctually use Hypertext Transfer Protocol (HTTP) for network communications. However, HTTP puts private user information out in the open for threat actors to intercept. Developers can fix this common mistake by using HTTPS instead, which encrypts data sent to and from servers via industry-standard SSL. Android developers can use the available NetworkSecurityConfig file to set up a predetermined configuration for all network connections made within the app or manually incorporate HTTPS. iOS developers can use App Transport Security (ATS) as the default feature that enforces secure communications in iOS apps and prevents any insecure connections between the mobile app and the server from being completed.

    Validate the Contents of the Certificate

    Certificates add an additional layer of security to HTTPS connections by enforcing additional validations when performing a connection. Certificates include the certificate authority (CA) that signed it and the list of hostnames known or accepted by the application. Apps that validate these components when performing connections with the server significantly reduce the risk of a man-in-the-middle (MITM) attack that can steal credentials and sensitive data.

    To verify a certificate has been issued by a valid CA, Android developers can reference the preconfigured list of CAs included on devices running the mobile operating system. Android developers can implement native classes such as HostnameVerifier to achieve proper hostname verification within their app.

    iOS developers can leverage ATS that provides built-in validation, or use methods in the NSURLSession class to manually code these instead.

    Avoid Hardcoding Resources of a Mobile App

    Attackers often use hardcoded info within the source code of a mobile app to take advantage of users. For instance, attackers can use credentials stored within app files to gain access to a user account. Attackers can also find hardcoded API keys or URLs to gather private data or take over an app entirely. Mobile app developers can prevent these areas from being compromised by not hardcoding keys, passwords and URLs into the source code. Encrypting transport and decrypting data on the backend also adds an extra layer of security.

    Use the Latest Cryptography to Protect Mobile Users

    Outdated cryptography algorithms like SHA-2, RC4 and DES allow attackers to easily break a seemingly secure mobile app. Using older algorithms may also make a mobile app non-compliant with industry regulations leaving an organization at risk of fines or legal jeopardy. Devs can avoid this problem for Android and iOS mobile apps by using the latest cryptography algorithms available, selecting those that are suitable for a specific app scenario. When signing your binary before publishing it to the store, use keys with a length of at least 2048 bits (preferably 4096 bits), and on Android use SecureRandom or SecRandomCopyBytes on iOS when generating random values for cryptographic implementations. Android devs can leverage the Keystore class and iOS devs can leverage Keychain services to store highly sensitive data. Devs should avoid insecure modes of operation, improperly generated cryptographic keys and initialization vectors (IVs) to guarantee that the information that is encrypted cannot be decrypted by a malicious actor.

    Today’s mobile app users need confidence that mobile apps are built with security in mind. While building innovative mobile apps, developers have a responsibility to learn a practical set of secure coding best practices to protect their users (and their businesses).

  • Techstrong TV: Closing the Diversity Gap in Tech Careers

    Techstrong TV: Closing the Diversity Gap in Tech Careers

    Charlene and Liliana discuss closing the gap in diversity in careers in tech. Learning to code can be a beneficial skill for traditionally underrepresented demographics, leading to more employment opportunities. The video and a transcript of the conversation are below.



    Recorded Voice:         This is Digital Anarchist.

     

    Charlene O’Hanlon:   Hey everybody, welcome back to Techstrong TV. I’m Charlene O’Hanlon and I’m here now with Liliana Monge, who is the cofounder and CEO of Sabio Coding Bootcamp. Liliana, thank you so much for joining me today, I really do appreciate it.

     

    Liliana Monge:           Thank you so much for having me. I’m super excited to have this conversation.

     

    O’Hanlon:   Excellent, excellent. Well we are happy to have you here, especially because I, I really do appreciate the efforts that you guys are doing through your coding bootcamp and really want to give you guys a little boost up if you will by a little bit of free promotion.

     

                                     But let’s talk about what you guys are doing. What, tell me a little bit about Sabio Boot, ah, Coding Bootcamp.

     

    Monge:       Yeah, so we started in the fall of 2013 in Los Angeles. Back then we had a very singular focus to make sure that the LA ecosystem was really going to be diverse. There was you know Los Angeles kind of at one point in time really lived in the shadows of San Francisco, of Silicon Valley and you know I would say in 2010, 2011 things really started to get heated up, more venture capitalists started to come into the state, a lot more companies started going public, such as Cornerstone OnDemand. So we knew what was going to happen in terms of all of this amazing wealth creation and jobs.

     

                                     So my partner and I, my cofounder, Gregorio and I, decided that we wanted to make sure that the ecosystem in California and Los Angeles was going to be diverse. So we set up a really innovative program that allows any adult who is smart and motivated to become a software developer within a very short period of time. So it’s very practical training. We were a hundred percent dedicated to helping women, more Latinos, more Black people, people who are underrepresented in tech like military veterans join this innovation economy.

     

    O’Hanlon:   That’s great, that’s great. And I’ve spoken with folks in other cities who basically have the same idea to, to really bring up the, you know rise up the traditionally underrepresented communities when it comes to technology. And it really surprises me how many start with these coding bootcamps or these coding classes. It seems like that is kind of the cornerstone of so many IT jobs these days. So I mean do you see a lot of folks entering the tech space using that particular avenue, the coding or, or is it do you think that it is kind of fundamental these days?

     

    Monge:       So I do think it’s definitely fundamental and it is a solution that can be applied pretty much throughout the United States or the world at this time, especially because we see the cost of hardware has come down significantly. That is a barrier to entry, right? You have to kind of have your own machine which is you know that, that needs to run VC software. As we all know software engineers run quite VC software. So you have to start with a price point of somewhere around you know $1500.00 to $2000.00 so that every person has the equipment they need, so that can be a barrier.

     

                                     However, once if you find a way to overcome the hardware barrier, you also have to make sure that there’s reliable internet, right, because all the information is on the internet, you’re posting to AWS Cloud probably your code and things like that. So there are two barriers.

     

                                     But then the last component, which is curriculum and practical training to become a software engineer I would say that is probably the most prolific. There is so much curriculum out there. So we decided to build our own custom curriculum. However, there are other organizations that release curriculum that’s available. There’s also a bunch of free stuff. Vendors many times have free resources. So it is a very wonderful solution to help any population.

     

                                     You know there’s so much going on right now. Like let’s say in Appalachia where the economy is changing and so people are like, “Is this a possible solution?” Miami is going through a massive transformation, right? They were known for hospitality, for travel, for leisure and now it’s just got this massive tech injection. So you can see how you can really take a coding bootcamp and kind of pluck it anywhere and if there is an ecosystem that’s going to support it, it can definitely create an amazing tech workforce anywhere in the country.

     

    O’Hanlon:   Yeah, I, I find it especially in, in urban areas that these coding bootcamps are, are cropping up. And I wonder if that’s also kind of I don’t want to call it a “substitute,” but maybe another avenue for especially kids coming out of high school that don’t really have maybe the means to go to a four-year college and then there are some people who don’t see the value in a four-year college, they just want to do the tech school route and get, get a basic understanding of what they need to do and then, and then go out and enter the workforce.

     

                                     So do you see these, ah, the important or the, the popularity of these coding bootcamps do you see them as more of a kind of a just a step for or these transitional and especially traditional under-represented communities a way for them to, to get the resources, to get the education they need without having to spend four years in college? Or do you see it more as they’re looking at it as, “I don’t want to go to college, but I do want to learn a trade and I want to…you know I see that there is value in coding because tech is the future.” So where, where are you kind of seeing people joining the bootcamps from?

     

    Monge:       Yeah, so that’s a fantastic question. When we began we thought we were going to be able to take students who graduated from high school and enroll in the program. However, we have found that 18-19-year-olds are a little bit too young to think about, “In three months I’m going to be a professional.”

     

    O’Hanlon:   Okay.

     

    Monge:       So we will enroll people who are that young and there’s always like 1 out of you know 40 that are 18 or 19, however, across the county and coding bootcamps you’re right did start in all the major metros had their own coding bootcamps.

     

                                     We see people who are more about 21 to about 25. So it’s individuals that have some type of life experience, maybe they’ve worked a little bit, maybe they did some community college, or maybe they got a degree that didn’t allow them to really participate in the economy in a meaningful way. So we’ve met so many music majors, so many psychology majors, even people who have you know a general business degree you know might have a hard time finding their footing in the economy.

     

                                     So we find that people who have some type of life experience, whether you’ve worked in retail and now are a little more mature you know and you’re really thinking about,” Okay, I want a career that’s going to offer me a lot of opportunities,” those are really the people that we’ve seen across the country decide to participate in the coding bootcamp. I would venture to guess that it’s the space that’s a little more mature, it might move a little bit younger, but right now we haven’t seen a massive demand from the 18- or 19-year-olds.

     

    O’Hanlon:   Okay. So I know when you got started it was really a focus on getting the underrepresented communities, the Latina community and you know just addressing a need that was going to exist in the LA area, but what, have, have you seen that demographic changing with your bootcamps as you’ve progressed? Has, has it been less about making sure that you know these traditionally underrepresented communities and, and, but it’s become more of a kind of a general population that have been attending the bootcamps?

     

    Monge:       Yes, definitely. So we did see that big shift and especially you know in 2020 when COVID hit Sabio had to go into a hundred present live remote environment, right? So starting in April and May we really were able enroll a person who was in Texas, a person who was in Chicago, because all you needed was your laptop and strong access to the internet. So we have seen that the demographics of our coding bootcamp have become you know they’re very diverse. Where we will have you know Latinos, African Americans, we have a massive women in tech scholarship, we do a lot to try to encourage ladies to come to the program and support them post-graduation.

     

                                     But one of the things that we weren’t aware of when we started was that there’s actually a large military veteran population that is very well suited for coding. That we discovered maybe two or three years into the coding bootcamp. So now a good percentage of the people in the program are military veterans. So we’ll have people who actually live around the world, because veterans I don’t know have seen the world and they, they discover beautiful parts. And so it’s become a really diverse community in a unique way that we weren’t really anticipating.

     

                                     But what we want is basically our training room to look like America, right? An America super diverse, super fantastic and that’s who should be participating in the innovation economy. We think everyone should give it a consideration, give it thought, try it a little bit and decide for themselves if it’s something that they want to do professionally.

     

    O’Hanlon:   I, I think – I love that, I think that’s, that’s amazing that you guys are doing that. It’s interesting to think about. I, I have a 12-year-old son and you know he codes every day and he doesn’t even realize that he’s coding it, that he’s doing coding. We’re, you know I’m in awe of what he’s able to do on, on a regular basis. It’s not anything – I mean obviously I could learn how to code at some point, but I think we’re gonna, we’re, we’re kind of reaching this, this point in time where it’s not really going to be a question of, “Do you want to learn how to code,” it’s just you know you’re gonna learn how to code, it’s going to be kind of ingrained like you know like math or English or anything like that.

     

    Monge:       Right.

     

    O’Hanlon:   It’s just going to be part of, you know part of our everyday lives.

     

                                     So do you, do you foresee in the future that you might see kind of a shift in the, in people’s attitude regarding coding and, and you know and then you know maybe have as a result maybe your curriculum is going to be shifting into maybe other areas?

     

    Monge:       Yeah, so I think there’s opportunities on both sides. I mean we’ve seen that you know there’s been a national movement for Hour of Code, right?

     

    O’Hanlon:   Mm-hmm.

     

    Monge:       So in December during Computer Science Week most elementary kids will sit down and actively say like, “I am coding today.” So they’re developing the digital proficiency from an early age, which is fantastic.

     

                                     There are also a lot of after-school curricular activities that are related to coding and robotics. So I think that there has to be like you said a general understanding of what code is, how it operates, have some kind of fluency in it.

     

                                     There are also a lot of tools that help people do low-code automation, right? So there’s that development. But then there’s the development on the other side of the dumbbell which is you’re going to have a lot of AI and machine learning. We’re doing a lot of stuff with autonomous vehicles. I think I’ve seen that they, they showcased the tractor that’s a hundred percent autonomous, right? That the farmer’s controlling just with his phone.

     

    O’Hanlon:   Mm-hmm.

     

    Monge:       So I think there’s really exciting things that are happening across the spectrum, the technical spectrum and so it is going to become more incumbent for people to have some type of digital literacy and I think it just depends on how much…

     

                                     Right, like you and I probably I don’t know how much – like I never finished calculus, I could, I tried it, I could never get there.

     

    O’Hanlon:   [Laughs]

     

    Monge:       And now as an adult running a business I’m like, “What even is it,” right? Like do, who really needs it?

     

    O’Hanlon:   Right, right,

     

    Monge:       Versus, “I need algebra,” you need spreadsheets, you need concepts of finance. So I think it’s going to be something similar. There’s going to be a big spectrum. Does that make sense? Did I answer that?

     

    O’Hanlon:   Yeah, no, no, it, it makes, it makes total sense. You know you brought up AI and machine learning and other areas where we’re going to be heading.

     

                                     You know I was just talking to somebody earlier today about the metaverse and, and you know now that, now that we’ve got these entire you know universes that are being constructed virtually and people can actually interact and, and it’s nothing like Second Life. You know if anybody remembers Second Life 20 years ago people thought that that was going to be the next big thing and that was a big bust. But you know the metaverse and, and now companies are, are talking about using holograms to, to have you know interactions with other people.

     

    Monge:       Yeah.

     

    O’Hanlon:   There’s so many things that are going to be coming that, that just are kind of mind blowing. That we are going to need this next generation of you know the kids today who they are the next generation of coders and they’re the ones who are going to create these new universes for us and all these technologies and capabilities. So I think it’s really, really amazing that, that they’re getting this foundation now so that they can start kind of… They don’t have to think about the actual idea of coding, you know getting over that hurdle, they can just think about all of the possibilities that are, that are open to them and that they can provide to, to, to their customers in the future. So good stuff there.

     

                                     I love the idea that you know we’ve got, we’ve got these coding camps that do really give a nice foundational base to anybody and that’s, that’s an important thing. And anything that we can do to, to really blur the lines between equity and parity when it comes to underrepresented populations in technology I think is a really, really good thing.

     

                                     So Liliana I do want to thank you very much for what you guys are doing. I think it’s a great thing.

     

                                     If folks are interested in finding out more about the Sabio Bootcamps how can they get it? Do you have a website you want to point them to?

     

    Monge:       Yes, certainly. So it’s just our name: S-A-B-I-O-.L-A, because we started in Los Angeles. If you go to the website you’re going to find a bunch of different resources. We have a lot of introductory courses that are absolutely free, so that people can dip their toe in the water and say, “Okay, is this something that might interest me?”

     

                                     From what I’ve learned a lot of people really describe getting a little bug when they wrote something and something happens and they’re just like, “Oh wow.”

     

                                     But I think a lot of people are you know we’re, we’re makers, right? We, we evolve to work with our hands, to have tools and to build things, so this is one of those ways that we can really be creative and build something that other people can use or maybe you just build a solution for yourself that you really need, that no one else has built.

     

    O’Hanlon:   All right, well that’s, that’s such great stuff. I do appreciate it. Again, thanks for joining me today on TechStrong TV. Liliana thanks again for your time.

     

    Monge:       Thank you for having me.

     

    O’Hanlon:   All right everybody please stick around we’ve got lots more TechStrong TV coming up, so stay tuned.

     

    [End of Audio]

     

  • How to Secure Online Coding Platforms

    How to Secure Online Coding Platforms

    Threat Modeling for Online Coding Platforms

    The evolution of DevOps teams and a greater reliance on cloud-based computing has completely changed the coding process. Now, with Integrated Development Environments (IDEs), coding can be done entirely online. This is convenient, but are online IDEs secure? To answer this, we will focus on two popular cloud-based IDEs: AWS Cloud9 and Visual Studio Online.

    In online coding, the IDE is rendered inside your browser, the browser JavaScript engine uses WebSockets to initiate an Secure Shell (SSH) connection to your linked device in the background—e.g. virtual private server (VPS)—providing you with the familiar terminal interface to execute commands. The environment—meaning the linked cloud VM/VPS or SSH-accessible device—includes tool configurations (like which tokens are included, or cloud configuration files), a copy of the source code, compilers and other tools that you want to use.

    Figure 1. Local versus cloud-based IDE. Source: Trend Micro.

    The main difference between local and cloud-based coding platforms is where the bulk of the environment resides. In cloud IDEs, the environment is a virtual machine instance inside your cloud provider. In terms of security, this means you are delegating trust to the cloud provider, but you are responsible for preventing any backdoors from opening or introducing misconfiguration issues to the VM. In the case of using your own device with AWS Cloud9, you are responsible for configuring the device securely.

    Linked Devices/VMs Are Not Always Secure

    What is running on the backend often dictates whether linked devices and VMs are secure. As previously described, an SSH-linked device is necessary to use these online coding platforms. In the case of Visual Studio Online (still in preview mode as of this writing), we can find a Visual Studio (VS) Code server running on the machine.

    The code server itself is a Node.js application to which your browser will connect. You can also download the whole ~/.vscode-remote folder and run the server inside your local environment.

    As the owner of the linked device, you have permission to promote yourself to root and install or configure whatever you think you will need. You also have, by default, both Docker and Git pre-installed.

    In the case of AWS-hosted Cloud9, the situation is a little more complicated. The backend necessary for platform communication is located inside the linked device while the frontend remains hosted on a different location. But, like in VS, you can also promote yourself to root.

    This brings us to our first security concern: How secure or private are linked devices/VMs?

    The linked device contains confidential information—access tokens, application configurations, source code, etc., which should be protected against unauthorized access.

    By default, the platform is secured by the provider. However, you should keep in mind that, together with your root access availability, you are also responsible for preventing misconfiguration issues, especially when using third-party plugins. AWS does not provide plugin support for plugins not developed by them.

    There are possible misconfigurations you might make that can lead to security issues. For example, if you set your IDE to be accessible from outside, either intentionally for ease of sharing, or unintentionally, that change can have major consequences.

    In addition, it is not common for access tokens to be stored in encrypted token vaults. A lot of them can be viewed via plaintext configuration files. Without additional security measures, your access tokens can end up exposed to outsiders.

    Once unauthorized access is acquired by cybercriminals, they can compromise your code for their own gain. An example would be the supply chain attack against a software company that modified software updates with malware.

    Browsers Can Introduce Malicious Extensions or Vulnerabilities

    The next security concern is the browser itself. As online coding platforms are accessed from web browsers, you should be very careful when accessing these sites from public, non-domain, shared or unprotected computers.

    Malicious browser extensions are a well-known phenomenon. While an untrusted computer possibly infected with malware presents an obvious risk, it is also possible for an attacker to steal code using a malicious web browser extension.

    Code Extensions and Plugins Can Also Contain Malware

    The main advantage of Visual Studio Online and, generally, the VS Code platform, is the number of extensions available. This in and of itself is yet another possible attack surface.

    Let’s imagine a malicious VS Code extension—a useful-looking extension with an embedded backdoor. The lack of permission checking (such as disk access, network access, process access, etc.) for extensions during installation or use, becomes a security problem. The extent of security checks during extension publishing is limited to having a valid publisher ID and a few image-related restrictions. This means you have to trust the extension developer entirely.

    No Software Application Is Error-Free

    The ever-present possibility of vulnerabilities in any kind of software must be considered as well. In the case of online coding platforms, they can be affected by web-class vulnerabilities since IDEs are web applications. For example, a vulnerability that allows an attacker to execute their own JavaScript code can have control of the IDE or remote linked devices.

    A recent vulnerability affecting the Visual Studio Live Share extension, which is also available for VS Code, shows that we can expect to see another vulnerability affecting online coding platforms in the near future.

    Securing Cloud IDEs Is a Must for DevOps

    Threat modeling allows us to understand the different factors at play that can affect the overall security of a computing environment. Cloud IDEs should be no different from other software, if not more critical to secure.

    Here are some recommendations for each of the security issues we raised:

    • For linked device security — Install trustworthy software. Keep that software updated. Don’t indiscriminately open ports to the internet.
    • For browsers — Work inside trusted and secured environments. Try to avoid using shared computers. Install browser extensions from trusted vendors only.
    • For VS Code extensions — Avoid installing extensions from unknown sources or authors.
    • For vulnerabilities in general — Make sure your environment is updated to the most recent version.

    — David Fiser

  • Don’t Be Afraid of the “R” Word

    It seems that many people are afraid of the word refactor.  I think in many cases, if someone admits they need to refactor, it means they either didn’t do their job right.  They either missed requirements, wrote inefficient or buggy code, etc.  Alternatively, there is something fundamentally wrong with the product or system.  The fact of the matter is that sometimes there are big problems and a major refactor/rewrite is required.  I think that is rarely the case, but if embraced by all and done judicially, the outcome can be significantly better and the major refactor avoided.

    It doesn’t matter if it is a feature, deployment script or architectural decision, at some point, everyone must admit they are not clairvoyant and cannot predict every way end-users or systems will behave.  Therefore, there will be missed/new requirements and unforeseen problems.  As such, I very much embrace the philosophy of build for what you know now and adapt as you go.  Typically, that means the output is simpler, it got done faster and enhancements and bugs are easier to address.  That philosophy also means you are constantly in a state of refactoring, or said differently, incorporating new learnings, making individual methods more efficient, improving the readability of the code, filling in missing tests, etc.

    Now, just because we have embraced refactoring and we have noble intentions of, in general, leaving the code better than we find it, that doesn’t give us the license to go crazy and start rewriting everything we see. I think there are right and wrong times to refactor.

    First and foremost, don’t let those yucky bits of code distract you from your real purpose which is to deliver business value by building those new systems, features and fixing bugs.  So instead of just jumping right into refactoring, quickly note the yuck as a TODO in the code, story or in your notepad so you don’t forget about it, but also stay on task.  That said, bad code that is directly in your way is fair game and I even think that bad code near the edges of your task are also fair game.

    Secondly, follow good engineering practices.  Make changes in small, bite size chunks, test and deploy your changes often and communicate them with the team.  In the end, you will end up with a better product, happier end-users and engineers which should all translate into a more successful business.

    If you are one of those clairvoyants, then email me and let’s talk over a beer because I have lots of questions.  Otherwise, if you are a mere mortal like myself, then embrace the “R” word and seek out companies and teams that also embrace it.  At the end of the day or after a few releases, it is pretty impressive to reflect back on how adaptable the team and code can be while solving real problems very quickly.